schworak
asked on
java.lang.NoClassDefFoundError
I would offer more points, but I am low at this point. Sorry!
Anyway, this is my first time working with java applets. I am using Anfy java fire aplet. It work great when viewing it locally off my hard drive through netscape. I uploaded the files I was told to upload to my web server and the app fails. I get the error "Applet fire error: java.lang.NoClassDefFoundE rror: fire" and I have no idea what that means. If you want to see the page it is on it is at www.g-world.com/ccrc.html
Anyway, this is my first time working with java applets. I am using Anfy java fire aplet. It work great when viewing it locally off my hard drive through netscape. I uploaded the files I was told to upload to my web server and the app fails. I get the error "Applet fire error: java.lang.NoClassDefFoundE
Did you upload a file called fire.class to the server too? If not, you probably need to.
For using the classes in a browser you will have to group them up and add a parameter in the applet html file . For Netscape browser you will have to package the classes in to a JAR file and add archive=xx.jar in the applet's html file . You can see more details on the following URL
http://java.sun.com/products/jdk/1.1/docs/guide/jar/index.html
For Internet Explorer you will have to package as a CAB file .
http://java.sun.com/products/jdk/1.1/docs/guide/jar/index.html
For Internet Explorer you will have to package as a CAB file .
ASKER
Just sticking the applets into a jar didn't do me any good. It doesn't seem logical to stick all the unrelated applets into a single download file anyway does it?
ASKER
Does the java applet need to be downloaded every time it is accessed on various pages? Or does it download and sit some place on the hard drive waiting for the next call? I have all the applets on the hard drive then I uploaded them to the server as instructed by the help file in the anfy collection. The odd part seems to be that the applets work when the html is on the hard drive but not when it is on the server. I don't understand.
What java version?
With Java 1.2b4 sun suddenly decided to split the classes.zip into tools.jar and jre/rt.jar
If you run from your harddisk perhaps the classes are found and from the web, they're not.
Are you using the same pc?
Michel
With Java 1.2b4 sun suddenly decided to split the classes.zip into tools.jar and jre/rt.jar
If you run from your harddisk perhaps the classes are found and from the web, they're not.
Are you using the same pc?
Michel
Hi, I have been to your site and found that you have the following error . Do you know if there is a directory called "my-java" in your webserver's documents directory ? Is the file "Lware.class" right in the directory "my-java" ??? Let the experts here know and hopefully your problem will be solved.
java.io.FileNotFoundExcept ion: www.g-world.com:80//my-java/Lware.class
java.lang.NoClassDefFoundE rror: Lware
at fire.init
at com/ms/applet/AppletPanel. securedCal l0
at com/ms/applet/AppletPanel. securedCal l
at com/ms/applet/AppletPanel. processSen tEvent
at com/ms/applet/AppletPanel. processSen tEvent
at com/ms/applet/AppletPanel. run
at java/lang/Thread.run
On the previous note about Jar files I was asking to package all related classes not other applet classes . If fire.class is calling Lware.class then these should be in one jar file.
java.io.FileNotFoundExcept
java.lang.NoClassDefFoundE
at fire.init
at com/ms/applet/AppletPanel.
at com/ms/applet/AppletPanel.
at com/ms/applet/AppletPanel.
at com/ms/applet/AppletPanel.
at com/ms/applet/AppletPanel.
at java/lang/Thread.run
On the previous note about Jar files I was asking to package all related classes not other applet classes . If fire.class is calling Lware.class then these should be in one jar file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Now I feel like a dope! Thanks so much for catching that for me. Stupid windows! Changed the case of the file name.