java.lang.ClassNotFoundException
-
I have created a Java game (183MB for .jar file) and can be played on local (offline) through .html and it works perfectly fine. However, once it is allocated into the server in my University, it does not run as expected and it projects the following exception:
load: class wildwildwest.applet_selection_screen not found.
java.lang.ClassNotFoundException: wildwildwest.applet_selection_screen
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: wildwildwest.applet_selection_screenWhat causes the above problem and what solution can be proposed to solve it? :) By the way, the .html code for the game is as followed is as following:
<HTML>
<HEAD>
<TITLE>Wild Wild West</TITLE>
</HEAD>
<BODY bgcolor="#000000"><font color="#ffffff" face="Curlz MT">
<center>
<H3><HR WIDTH="100%">Wild Wild West<HR WIDTH="100%"></H3><P>
<APPLET CODE="wildwildwest.applet_selection_screen" archive="Wild Wild West.jar" width=800 height=600></APPLET>
</P></center>
</font>
</BODY>
</HTML> -
I have created a Java game (183MB for .jar file) and can be played on local (offline) through .html and it works perfectly fine. However, once it is allocated into the server in my University, it does not run as expected and it projects the following exception:
load: class wildwildwest.applet_selection_screen not found.
java.lang.ClassNotFoundException: wildwildwest.applet_selection_screen
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: wildwildwest.applet_selection_screenWhat causes the above problem and what solution can be proposed to solve it? :) By the way, the .html code for the game is as followed is as following:
<HTML>
<HEAD>
<TITLE>Wild Wild West</TITLE>
</HEAD>
<BODY bgcolor="#000000"><font color="#ffffff" face="Curlz MT">
<center>
<H3><HR WIDTH="100%">Wild Wild West<HR WIDTH="100%"></H3><P>
<APPLET CODE="wildwildwest.applet_selection_screen" archive="Wild Wild West.jar" width=800 height=600></APPLET>
</P></center>
</font>
</BODY>
</HTML>Check this link[^], it has most of the common problems for deploying an applet.
Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
-
Check this link[^], it has most of the common problems for deploying an applet.
Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
Thanks for the suggestion but it doesn't seems to be able to solve the problem. There are others java games has been uploaded onto the same server but only the one I have is not able to work online while the rest can be loaded and played.
-
Thanks for the suggestion but it doesn't seems to be able to solve the problem. There are others java games has been uploaded onto the same server but only the one I have is not able to work online while the rest can be loaded and played.
If there are other applets running without a problem, I'd suggest you investigate the differences.
Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
-
Thanks for the suggestion but it doesn't seems to be able to solve the problem. There are others java games has been uploaded onto the same server but only the one I have is not able to work online while the rest can be loaded and played.
check the libraries you're using. Might be a indirect reference, which causes the deployment not to find the jar and therefor not to work proper. Also check your build-Config, sometimes not all classes are marked to be added to the build.
regards Torsten When I'm not working
-
I have created a Java game (183MB for .jar file) and can be played on local (offline) through .html and it works perfectly fine. However, once it is allocated into the server in my University, it does not run as expected and it projects the following exception:
load: class wildwildwest.applet_selection_screen not found.
java.lang.ClassNotFoundException: wildwildwest.applet_selection_screen
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: wildwildwest.applet_selection_screenWhat causes the above problem and what solution can be proposed to solve it? :) By the way, the .html code for the game is as followed is as following:
<HTML>
<HEAD>
<TITLE>Wild Wild West</TITLE>
</HEAD>
<BODY bgcolor="#000000"><font color="#ffffff" face="Curlz MT">
<center>
<H3><HR WIDTH="100%">Wild Wild West<HR WIDTH="100%"></H3><P>
<APPLET CODE="wildwildwest.applet_selection_screen" archive="Wild Wild West.jar" width=800 height=600></APPLET>
</P></center>
</font>
</BODY>
</HTML> -
I have created a Java game (183MB for .jar file) and can be played on local (offline) through .html and it works perfectly fine. However, once it is allocated into the server in my University, it does not run as expected and it projects the following exception:
load: class wildwildwest.applet_selection_screen not found.
java.lang.ClassNotFoundException: wildwildwest.applet_selection_screen
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: wildwildwest.applet_selection_screenWhat causes the above problem and what solution can be proposed to solve it? :) By the way, the .html code for the game is as followed is as following:
<HTML>
<HEAD>
<TITLE>Wild Wild West</TITLE>
</HEAD>
<BODY bgcolor="#000000"><font color="#ffffff" face="Curlz MT">
<center>
<H3><HR WIDTH="100%">Wild Wild West<HR WIDTH="100%"></H3><P>
<APPLET CODE="wildwildwest.applet_selection_screen" archive="Wild Wild West.jar" width=800 height=600></APPLET>
</P></center>
</font>
</BODY>
</HTML>arthur89kim wrote:
What causes the above problem and what solution can be proposed to solve it?
The class is not in the class path. The solution follows from that.
arthur89kim wrote:
I have created a Java game (183MB for .jar file) and can be played on local (offline) through .html and it works perfectly fine.
Which means it is in the class path. Although it isn't clear what you mean by "through .html". I will note some oddities. 1. 183 meg is a really big jar 2. Class name doesn't follow standard naming. 3. Jar name shouldn't have spaces in it. What happens if you change, ONLY in the html, to XXX.jar? That should specifically fail because the jar doesn't exist. However if you get the same error then I would suppose that your jar is not being found on the server (thus it won't be in your client and not in the class path.) That is a guess though.
-
thanks for the suggestion. I will try to solve it.
-
arthur89kim wrote:
What causes the above problem and what solution can be proposed to solve it?
The class is not in the class path. The solution follows from that.
arthur89kim wrote:
I have created a Java game (183MB for .jar file) and can be played on local (offline) through .html and it works perfectly fine.
Which means it is in the class path. Although it isn't clear what you mean by "through .html". I will note some oddities. 1. 183 meg is a really big jar 2. Class name doesn't follow standard naming. 3. Jar name shouldn't have spaces in it. What happens if you change, ONLY in the html, to XXX.jar? That should specifically fail because the jar doesn't exist. However if you get the same error then I would suppose that your jar is not being found on the server (thus it won't be in your client and not in the class path.) That is a guess though.
Thanks for the suggestion. I will try the solution proposed. :)
-
check the libraries you're using. Might be a indirect reference, which causes the deployment not to find the jar and therefor not to work proper. Also check your build-Config, sometimes not all classes are marked to be added to the build.
regards Torsten When I'm not working
Thanks for the information. I will try it out as soon as possible.
-
check the libraries you're using. Might be a indirect reference, which causes the deployment not to find the jar and therefor not to work proper. Also check your build-Config, sometimes not all classes are marked to be added to the build.
regards Torsten When I'm not working
TorstenH. wrote:
check the libraries you're using. Might be a indirect reference, which causes the deployment not to find the jar and therefor not to work proper.
Huh? Jars don't have dependencies - classes do. If the specified class is in the specified jar and the class has another class dependency which is not found then a different exception would be the result. Perhaps you meant something different?