This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I have a java file named Client.java. Upon compiling, it produced two classes named Client.class and Client$1.class(I think this is a subclass when i create a new Runnable object). When I upload the Client$1, it shows an error "invalid class format". Is this class necessary in uploading my applets? Is it possible if i upload my classes inside a jar?
Glenn Castro<br />Sun Certified Web Component Developer
Glenn, what do you mean with uploading? Sending the files to a webserver? Do you get the same error if you start this locally? I suggest, pack the files in a jar. Jars are much easier to handle than single classes, if your applet gets bigger. , korol
The class is necessary and it is probably the Runnable as you suspected. I agree putting it in a jar might make the process easier
Joined: Aug 24, 2003
Ok, thanks guys for the advice. Now, I have new question. How can I call the class in the jar file in HTML. When it is not jar. I used the ff. in the html <applet code="Client.class" width=300 height=300> if I upload the jar file, should it be: <applet code="Client.jar" width=300 height=300> where Client.jar is the name of the jar file