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:
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:
type
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:
This should fix your problem.
If you have any other problems, post 'em here!
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 could be fixed several ways, one of which Sythe described in another thread. I'll repeat that here:
Instead of typing:
Code:
java [myclass]
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!

