This had happened right after I clicked the haven app.Exception in thread "main" java.lang.NoClassDefFounder Error: C:\Users\Moznic\Desktop\haven/jnlp Caused by: java.lang.ClassNotFoundException: C:\Users\Moznic\Desktop\haven.jnlp at java.net.URLClassLoader$1.run<Unknown Source>
at java.security.AccesController.doPrivelegend<Native Method>
at java.net URLClassLoader.findClass<Unknown Source>
at java.lang.ClassLoader.loadClass<Unknown Source> at sun.misc.Launcher$AppClassLoader.loadClass<Unknown source>
at java.lang.ClassLoader.loadClass<Unknown Source>
Could not find the main class: C:\Users\Moznic\Desktop\haven.jnlp.
Java Issue
Moderator: Phades
-
Moznic
- Posts: 6
- Joined: Fri May 06, 2011 10:13 pm
Java Issue
-
Phades
- Posts: 352
- Joined: Tue Jan 25, 2011 9:07 pm
Re: Java Issue
More information.
What OS are you using. 32/64bit? What version of Java and is it 32/64bit? Are you wearing underwear? Are you using a custom client? If so, which custom client?
There are a lot of questions we need to know before we can help you.
I'm going to assume you just pressed the play button at top and got the error. If so, first update to the latest version of Java. Then try again.
What OS are you using. 32/64bit? What version of Java and is it 32/64bit? Are you wearing underwear? Are you using a custom client? If so, which custom client?
There are a lot of questions we need to know before we can help you.
I'm going to assume you just pressed the play button at top and got the error. If so, first update to the latest version of Java. Then try again.
-Diadems of Odditown
Odditown loves you no matter what.
Odditown loves you no matter what.
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: Java Issue
From what I can tell, you've configured your system to launch JNLP files with java.exe or javaw.exe. You should use javaws.exe instead.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
-
Phades
- Posts: 352
- Joined: Tue Jan 25, 2011 9:07 pm
Re: Java Issue
^ Java pro.loftar wrote:From what I can tell, you've configured your system to launch JNLP files with java.exe or javaw.exe. You should use javaws.exe instead.
-Diadems of Odditown
Odditown loves you no matter what.
Odditown loves you no matter what.
-
Moznic
- Posts: 6
- Joined: Fri May 06, 2011 10:13 pm
Re: Java Issue
I'm currently using Windows 7 64-bit and yes I'm using the custom client from Ender. My java is 64-bit, but after I changed it to open with javaws, as mentioned above it just says unable to launch the app.
Edit:
Interesting, the problem is now solved it just as the other poster mentioned. I needed to change the launch program to javaws.exe.
Edit:
Interesting, the problem is now solved it just as the other poster mentioned. I needed to change the launch program to javaws.exe.
Last edited by Moznic on Sat May 07, 2011 2:36 pm, edited 1 time in total.
-
sheltem
- Posts: 22
- Joined: Sat Apr 30, 2011 1:31 pm
Re: Java Issue
The .bat you use to start Ender's has to point to the folder where Ender's is, not the jnlp. Then you just start it with the .bat-file.
-
Moznic
- Posts: 6
- Joined: Fri May 06, 2011 10:13 pm
Re: Java Issue
Got the problem solved, thanks for your time.sheltem wrote:The .bat you use to start Ender's has to point to the folder where Ender's is, not the jnlp. Then you just start it with the .bat-file.