Error in reading .class files
What kind of program opens .class files?
i'm new to java technology and am very confused with all these.
Can someone please help?
.class files ...
i think its got something to do with JVM
please send me instructions on how to run .class files
thanks
You need java.exe from the JRE or J2SDK. You can find the download links on the front page of http://java.sun.com. At its simplest, if your class file is called MyProgram.class, you would run it with the command "java MyProgram".
Similar Messages
-
Error while converting class file to exp and jca file
error while converting *.class file to *.exp and *.jca file
=====================================================================================================================
linux-y60u:/home/admin/java_card_kit-2_2_1/samples/src # converter -exportpath "/home/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/HelloWorld 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/HelloWorld.class
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/Identity.class
error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file format of version 50.0.
error: com.sun.javacard.samples.HelloWorld.Identity: unsupported class file format of version 50.0.
conversion completed with 2 errors and 0 warnings.
=====================================================================================================================i compile a file javacard use this command:
===
javac -source 1.3 -target 1.1 -g -classpath ./classes:../lib/api.jar:../lib/installer.jar src/com/sun/javacard/samples/Identity/Identity.java
===
and try to convert this class use this command
===
/home/xnuxerx/admin/java_card_kit-2_2_1/bin/converter -exportpath "/home/xnuxerx/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/Identity 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
===
result convert:
===
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/xnuxerx/admin/java_card_kit-2_2_1/samples/classes/com/sun/javacard/samples/Identity/Identity.class
converting com.sun.javacard.samples.Identity.Identity
error: export file framework.exp of package javacard.framework not found.
conversion completed with 1 errors and 0 warnings.
===
why ??
please your comment for this problem.
thank 4 all. -
I created and deployed a BPEL process with a JMS adapter and DB adapter.
I have tested this and it works fine.
After a few days, I try to open the project and the BPEL process, and click on the DB
adapter and it throws an exception on the designer :
"Error while reading wsdl file ... (wsdl file name) NULL Exception"
This is hard to debug as the exception does not provide any info, NULL.
This has happened several times for my project. The next time the JMS adapter hit the
same exception while opening on designer. This one I notice happened after I imported
a new schema file (xsd) into the BPEL process.
Only way around that I have for this currently is to delete and recreate the adapters, which as time
consuming as I have to re-create and re-assign a lot of the activities.
Has anyone encountered this and is there a way to fix this without deleting/recreating the adapters ?
Thanks.I experienced the same issue and found the cause and a workaround;
"Error while reading wsdl file …. Exception: null"
http://www.petervannes.nl/files/b7c08911ce3cde3677e2182bbc5f032a-47.php
Edited by: 944333 on Jul 3, 2012 10:24 PM -
I do not have Microsoft office and want to know if I can still open docx files - error message reads corrupt files. Is there a reliable converter out there? I am a new mac user.
Install the free LibreOffice and save a bundle not having to pay MS. http://www.libreoffice.org/
-
Error while reading excel file from application server into internal table.
Hi experts,
My requirement is to read an excel file from application server into internal table.
Hence I have created an excel file fm_test_excel.xls in desktop and uploaded to app server using CG3Z tcode (as BIN file type).
Now in my program I have used :
OPEN DATASET v_filename FOR INPUT IN text mode encoding default.
DO.
READ DATASET v_filename INTO wa_tab.
The statement OPEN DATASET works fine but I get a dump (conversion code page error) at READ DATASET statement.
Error details:
A character set conversion is not possible.
At the conversion of a text from codepage '4110' to codepage '4103':
- a character was found that cannot be displayed in one of the two
codepages;
- or it was detected that this conversion is not supported
The running ABAP program 'Y_READ_FILE' had to be terminated as the conversion
would have produced incorrect data.
The number of characters that could not be displayed (and therefore not
be converted), is 445. If this number is 0, the second error case, as
mentioned above, has occurred.
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_CONVERSION_CODEPAGE', was not
caught and
therefore caused a runtime error.
The reason for the exception is:
Characters are always displayed in only a certain codepage. Many
codepages only define a limited set of characters. If a text from a
codepage should be converted into another codepage, and if this text
contains characters that are not defined in one of the two codepages, a
conversion error occurs.
Moreover, a conversion error can occur if one of the needed codepages
'4110' or '4103' is not known to the system.
If the conversion error occurred at read or write of screen, the file
name was '/usr/sap/read_files/fm_test_excel.xls'. (further information about
the file: "X 549 16896rw-rw----201105170908082011051707480320110517074803")
Also let me know whether this is the proper way of reading excel file from app server, if not please suggest an alternative .
Regards,
KarthikHi,
Try to use OPEN DATASET v_filename FOR INPUT IN BINARY mode encoding default. instead of OPEN DATASET v_filename FOR INPUT IN text mode encoding default.
As I think you are uploading the file in BIN format to Application server and trying to open text file.
Regards,
Umang Mehta -
Error while reading CPS file in jar
Hi,
I am getting error :-
Error while initializing CAZM Factory : CardAuthorizationManagerFactory : getFactory : in one of my class in WSAD
Root cause i guess its not reading CPS file which is there in one of the jar file.
Please help me to get solution.
Regards,
DivyaI am also using a raw file destination using a variable.
I have set DelayValidation = true on both the DataFlow task and even the Sequence Container.
I get the same error when I run the entire ssis package, however
when I run the individual container or individual task it runs without an error.
Also, something interesting is the error is not the same path as the variable name.
Warning: The system cannot find the file specified.
Error: File "C:\Users\MyName\AppData\Local\Temp\GUIDNumber\\RawFileName" cannot be opened for reading. Error may occur when there are no privileges or the file is not found. Exact cause is reported in previous error message.
The variable is "C:\Temp\ProjectName\RawFileName"
I have other RawFile sources in this same project, but only this one file is giving me grief.
Any other suggestions? Is this a bug?
Have you set an expression for connection string property of raw file? Is it based on variable/expression or configuration? If yes, check the value of variable/ expression or configuraton item at runtime by putting a breakpoint in the pre execute event of task
and make sure path value its getting is correct. It may be that path is getting a different value at runtime due to expression/configuration set for it.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Error wile importing class file
hi,
i am trying to import a class file(exp) in jsp, but it gives error mesg like unable to find the class file. the code is
class file is plcaced in "C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\classes"
<%@ page language="java" import="exp" %>
<html>
<body>
<%! test t = new test(); %>
Length of Sabarish is <%= t.strLength("Sabarish") %>
</body>
</html>kindly helphai,
try placing ur class in a package and provide fully qualified class name in jsp import
hope this will help
regards,
varma. -
EJB:Error in adding class file in JAR
Hi im doing project in EJB
when i add class files to JAR this type error occurs
Pls help in need of helpGenerally WEB-INF\classes\ is for compiled classes.
You should move your java source files to say SecondWap\src\com\hclasses to match up with your package name in your ajva file. -
Error while reading a file from server
Mine is 9i database and 11.5.10.2 oracle apps server
I am trying to read PDF file from server, I used the below code
l_bfile:=bfilename('\u05\app\applmgr\11i\oraclecomn\admin\out\jamuna_server','o7742576.out');
if DBMS_LOB.FILEEXISTS(l_bfile) = 1 then
dbms_output.put_line( 'Exists!');
dbms_output.put_line(dbms_lob.getlength(l_bfile));
else
dbms_output.put_line( 'Not Exists!');
end if;
i used forward slashes (/) instead of backward slashes (\) too and i also made dbms_output.put_line(to_char(dbms_lob.getlength(l_bfile)));
while using dbms_log package , i got the below error .I am bit worried since I have created directory and gave sufficicent priviliges too.
Error report:
ORA-00604: error occurred at recursive SQL level 1
ORA-01460: unimplemented or unreasonable conversion requested
ORA-06512: at "SYS.DBMS_LOB", line 485
ORA-06512: at line 24
I am sure bfilename('\u05\app\applmgr\11i\oraclecomn\admin\out\jamuna_server','o7742576.out') is give BFILE which is empty.
Can you please suggest me what I can do to move further? what kind of priviliges it requires to point and read the file from server?
Please help me in this.
Thanks in advanceI suspect you are not using a directory object is the problem.
Here is the formal description of bfilename
http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/functions12a.htm#SQLRF00610
Sybrand Bakker
Senior Oracle DBA -
Error while reading wsdl file exception null
Hi
I am trying to invoke a proxy service (web service) wsdl from a bpel process. When i add a web service adapter, put url of external web service and save it, all my service end points defined in the BPEL process are becoming non editable. Binding of operation is changing from web service to HTTP binding for all end points. When I try to edit any partner link, Jdev throws an error " error reading wsdl file excepetion null " for local services. For external service, even though i am refering to a url on the server, it points to " C:\Oracle\Middleware\jdeveloper\jdev\bin\...\xxxx?WSDL" and throws same error " failed to read wsdl file(System could not find the path specified". I am just clueless as to why this is happening. Any help is much appreciated.
I am using Jdev 111115 and SOA 11g.remove all the files from your temp folder
restart your jdev this will resolve this issue. -
Interface Designer: "Reading Class File" fails
I'm just trying the Apple Cocoa Tutorial (ConcurrencyConverter). I have a problem at the point where you shall load the class file "ConverterController.h" into the Interface Designer. It always fails with the error "Parsed 1 source file, but no buttons were found...".
Even when I copy and paste the header file from the tutorial it doesn't work. It looks like this:
#import <Cocoa/Cocoa.h>
@interface ConverterController : NSObject {
IBOutlet NSTextField *amountField;
IBOutlet NSTextField *dollarField;
IBOutlet NSTextField *rateField;
- (IBAction)convert:(id)sender;
@end
I have no idea what to do now, can you help me?digitalformula wrote:
Your note about the outlets etc actually being there but needing to look harder made me stare at the screen for a few minutes ... I can't see them though.
Maybe they just don't show up in Xcode 3.2.1???
Hi DF -
I don't know how to guide you further since I don't have 3.2.1. Did you see Ruud's most recent post?
Ruud Wijnands wrote:
... if you click on the connections tab they are shown there in in unconnected state.
Assuming this much hasn't changed since 3.1.4, besides the Class Outlets table in the Identity Inspector, there are two places to look for Outlet and Action connections:
1) When you ctrl-click on an object (e.g. the icon for a controller), a black, floating panel should come up listing all connections from and to that object. Be sure to select the object in the xib (icon) window with the View Mode switch in the Center position. With that View Mode setting, the xib window should display a two column table with a tree of small icons to the left. By expanding the nodes in that tree you should be able to find every object in the xib;
2) When you select an object (in the xib window as above), the Connections Inspector (cmd-5) should display all possible connections from and to the object. I assume this is the view Ruud referred to as "the connections tab".
I don't recall seeing a case where the black panel list differed from the list shown in the Connections Inspector, but it wouldn't hurt to look at both. If neither of the above finds the connections when _you've seen your custom class in the Identity list, and set the object in question to that class_, I might suggest closing the xib and restarting IB. You could also try modifying and resaving your custom object's @interface file just to stir things up a bit (e.g., remove all the IBOutlet declarations, save, then add them and resave).
It might also help to start a new project and do nothing else but add one custom class to see if you have better luck getting IB to import the correct connections in the new context. E.g., add a NSObject subclass named Foo with one ivar such as IBOutlet NSWindow *Bar; then see if you can add a blue cube to MainMenu.xib, set its identity to Foo class and see the Bar outlet.
For more details on connecting custom objects, see "Setting the Class of an Object" and "Injecting Class Information into a Nib File" under Xcode Integration in the +Interface Builder User Guide+.
Of course it's possible we're dealing with a bug that's unique to 64-bit 3.2.1. I've searched the web, the 3.2.1 Release Notes and the Xcode Mailing List for reports that might confirm this, but haven't found anything interesting yet. So I think we should continue to assume that Xcode 3.2.1 is capable of obtaining custom class info, and we're just dealing with some misunderstanding. Hopefully, one of our forum experts who has 3.2.1 will join the thread to shed some more light on the topic.
\- Ray -
Urgent,java Error when compiling class file for jsp
Hi!
Reference to statement is ambbiguous,both class java.sql.statement in java.sql and class.java.beans.statement in java beans match.
this is my file . When i comment the java.import.bean headre it does compile but my server is not able to recognize the class file.,Cud someone help me.
THis is my source file
package dbmg;
//import java.beans.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class DbBean
Connection con;
ResultSet rs;
String sql;
boolean queryType;
int edited;
public DbBean() throws Exception
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:Forums");
public void setQueryType(String s)
queryType=s.equalsIgnoreCase("select");
public void setSql(String s)
sql = s;
synchronized public void processRequest(HttpServletRequest req) throws
Exception
if (queryType)
Statement stmt=con.createStatement();
rs=stmt.executeQuery(sql);
else
PreparedStatement ps=null;
ps=con.prepareStatement(sql);
int count=0;
String sqlParam,paramValue;
boolean set=true;
while (set)
count++;
sqlParam="param"+String.valueOf(count);
if (sqlParam==null)
set=false;
continue;
paramValue=req.getParameter(sqlParam);
if (paramValue==null)
set=false;
continue;
else
paramValue=paramValue.trim();
try
ps.setString(count,paramValue);
catch(Exception ex)
set=false;
continue;
try
edited=ps.executeUpdate();
catch(SQLException e)
edited=0;
public Connection getConnection()
return con;
public ResultSet getResultSet()
return rs;
public int stored()
return edited;
public void closeCon() throws Exception
con.close();
rs = null;No need of commenting your import statement. Whenever there is ambiguity, you can use full class name (with package).
Like,
java.sql.Statement stmt=con.createStatement();
Now there is no ambiguity.
Sudha -
Error While Reading a file Dynamicall​y in CRIO - 9073
Hello all,
I am using CRIO - 9073, here i transferred a file (With size of 5mb) through FTP from my PC..... and then i am trying to read it Dynamically, but while i am reading this file and updating, my CRIO going to stop mode...... So i can't workout more... Give a fine reply all...
Regards
Pandithan.What code for path building do you have running on the CRIO?
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
HELP!! ERROR IN reading from file!! (PART of )PROGRAM
Take a look at my program first....
import java.io.*;
public class reading_file {
public static void main(String[] args) throws IOException {
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
String [] sType= new String[10];
int [] sNum= new int[10];
float [] sPrice= new float[10];
String FileName="new.txt";
BufferedReader inFile=new BufferedReader(new FileReader(FileName));
String inputLine="";
int totalLines=0;
while(inFile.readLine()!=null){
totalLines++;
int totalStock=totalLines/3;
System.out.println(totalStock);
for(int i=0; i<totalStock;i++){
sType=inFile.readLine();
System.out.println(sType[i]);
sNum[i] =Integer.parseInt(inFile.readLine());
System.out.println(sNum[i]);
sPrice[i] =Float.parseFloat(inFile.readLine());
System.out.println(sPrice[i]);
inFile.close();
I am reading the info from the file to the respective array shown.
e.g these are the info in the .txt file
/////=>
PANTS
35
23.3
LOGITECH CORDLESS DESKTOP
200
50.23
MONITER
62
54.9
<=
but when i run the program the errors such as :
==>
compile-single:
run-single:
3
null
Exception in thread "main" java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:497)
at reading_file.main(reading_file.java:26)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
why is that??
any mistake in the program??You could mark the start of the file with the mark method from BufferedReader, but you'd best check that this is ok to do with a call to the bufferedreader markSupported method. This method will return true if you are able to mark the reader. You have to include an int parameter with the mark method that is bigger than the file size. In your case this will be easy since the file is small. Then before the second reading, call reset( ) on your buffered reader.
Personally, I wouldn't use arrays but would use an arraylist. Also, I'd have the 3 bits of information entered into a single object and store all the information (contained within the single object) into a single arraylist. Since the arraylist has a variable size, you don't need to know its size in advance, and you don't have to worry about reading through a file twice. Once will do nicely. -
Error while reading raw file created in previous task using raw file destination
I am reading a flat file and creating an raw file using raw file destination. path of the raw file is in a variable. now I am reading the raw file using the rawfile source component. I am able to execute if the .raw file is available. But
when we deploy into the production the .raw will be created runtime, so the package is getting failed while evualting the variable which hold the path of the variable. since the .raw is not available i am not able to proceed further. it's in ssis 2008
r2
Error at Load Data [Raw File Source [401]]: File "c:\test123.raw" cannot be opened for reading. Error may occur when there are no privileges or the file is not found. Exact cause is reported in previous error message.
Error at Load Data [SSIS.Pipeline]: component "Raw File Source" (401) failed validation and returned error code 0x80004005.
Error at Load Data [SSIS.Pipeline]: One or more component failed validation.
Error at Load Data : There were errors during task validation.I am also using a raw file destination using a variable.
I have set DelayValidation = true on both the DataFlow task and even the Sequence Container.
I get the same error when I run the entire ssis package, however
when I run the individual container or individual task it runs without an error.
Also, something interesting is the error is not the same path as the variable name.
Warning: The system cannot find the file specified.
Error: File "C:\Users\MyName\AppData\Local\Temp\GUIDNumber\\RawFileName" cannot be opened for reading. Error may occur when there are no privileges or the file is not found. Exact cause is reported in previous error message.
The variable is "C:\Temp\ProjectName\RawFileName"
I have other RawFile sources in this same project, but only this one file is giving me grief.
Any other suggestions? Is this a bug?
Have you set an expression for connection string property of raw file? Is it based on variable/expression or configuration? If yes, check the value of variable/ expression or configuraton item at runtime by putting a breakpoint in the pre execute event of task
and make sure path value its getting is correct. It may be that path is getting a different value at runtime due to expression/configuration set for it.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Maybe you are looking for
-
so i have one ipod and it is a 2005 ipod nano. i have plugged into my computer and i cant get to the music on it. i am trying to burn it onto a disk or even a diffrent folder on my computer so i can just have select songs on my ipod. the reason i hav
-
Error in generating Javadoc ..
Hi, I'm trying to run a ant script to create javadoc. I'm using JDK 1.5 for the same. But I'm getting following error. Can anybody give me some suggestion what could be wrong there. I'm not getting any files written after this error, and build is fai
-
Can't scan from Office Jet Pro 8600
I can't scan from my Office Jet Pro 8600. I'm connected to my home Verizon Fios wireless network. I'm running Windows XP. The printer works fine, but I can't scan. When I use the display on the printer I get a "No Computer Found" message. When I
-
"encoding = UTF-8" missing while writing XML file using file Adapter
Hi, We are facing an unique problem writing xml file using file adapter. The file is coming without the encoding part in the header of xml. An excerpt of the file that is getting generated: <?xml version="1.0" ?> <customerSet> <user> <externalID>5101
-
Some web sites not working in FF but they are OK in Safari.
A couple of times lately I have had web sites not work correctly with Firefox. I need to switch to Safari to complete the tasks I needed to do. My FF is running on Mountain Lion and is up to date. Thanks, MJT