Jump to content

Cannot load local script


pepsip77
 Share

Recommended Posts

Exception in thread "Thread-19" java.lang.NoClassDefFoundError: Main (wrong name
: pepsip77/pFisher/Main)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at xobot.ja.ALLATORIxDEMO(wa:200)
        at xobot.ja.ALLATORIxDEMO(wa:70)
        at xobot.Z.run(va:239)
        at java.lang.Thread.run(Unknown Source)

project hierarchy:
9e86aebb02.png

Link to comment
Share on other sites

Rename the file to the exact same name as your main class and put the Java file directly in the src folder. Ignore the recommendation that you shouldn't put files in the main class. That's true for Java applications, but doesn't hold true for most RS bots. 

Link to comment
Share on other sites

  • Neo locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...