• Log in or sign up for an account here: https://www.sythe.org/login

How to Fix the NoClassDefFoundError.

  • Thread starter Thread starter x⁹
  • Start date Start date
Status
Not open for further replies.
X

x⁹

Guest
Ok, I've seen a lot of threads asking this question lately, so I decided to make a thread to answer it! Perhaps a mod could sticky this?

Sometimes when you try to run a bot or other Java program, you might receive this error:

Code:
Exception in thread 'main': NoClassDefFoundError: [classfile]
This means that java.exe couldn't find the classfile you specified.

This could be fixed several ways, one of which Sythe described in another thread. I'll repeat that here:

Instead of typing:
Code:
java [myclass]
type
Code:
java -cp . [myclass]

Another way Sythe described was to do this:

Right click My Computer and select properties (or hit windows + break).
Click on the Advanced tab.
Click on the Environment Variables button.
Find the variable called 'path' and add this onto the end of it:
Code:
.;

This should fix your problem.

If you have any other problems, post 'em here!
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top