Java Issue

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

User avatar
Moznic
Posts: 6
Joined: Fri May 06, 2011 10:13 pm

Java Issue

Post by Moznic »

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.
This had happened right after I clicked the haven app.
User avatar
Phades
Posts: 352
Joined: Tue Jan 25, 2011 9:07 pm

Re: Java Issue

Post by Phades »

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.
-Diadems of Odditown
Odditown loves you no matter what.
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Java Issue

Post by loftar »

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
User avatar
Phades
Posts: 352
Joined: Tue Jan 25, 2011 9:07 pm

Re: Java Issue

Post by Phades »

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.
^ Java pro.
-Diadems of Odditown
Odditown loves you no matter what.
User avatar
Moznic
Posts: 6
Joined: Fri May 06, 2011 10:13 pm

Re: Java Issue

Post by Moznic »

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.
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

Post by sheltem »

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.
User avatar
Moznic
Posts: 6
Joined: Fri May 06, 2011 10:13 pm

Re: Java Issue

Post by Moznic »

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.
Got the problem solved, thanks for your time.

Return to “The Wizards' Tower”