How to Fix the NoClassDefFoundError.

Discussion in 'RuneScape Miscellaneous' started by x⁹, Feb 28, 2006.

Thread Status:
Not open for further replies.
How to Fix the NoClassDefFoundError.
  1. Unread #1 - Feb 28, 2006 at 2:45 AM
  2. x⁹
    Referrals:
    1

    x⁹ Guest

    How to Fix the NoClassDefFoundError.

    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!
     
< How to make your own Videos. | >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site