pepsip77 Posted August 30, 2017 Share Posted August 30, 2017 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: Link to comment Share on other sites More sharing options...
Neo Posted August 30, 2017 Share Posted August 30, 2017 put your main file in the src folder (not a package) Link to comment Share on other sites More sharing options...
pepsip77 Posted August 31, 2017 Author Share Posted August 31, 2017 still no bueno Link to comment Share on other sites More sharing options...
SoulFire Posted August 31, 2017 Share Posted August 31, 2017 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 More sharing options...
Neo Posted August 31, 2017 Share Posted August 31, 2017 6 hours ago, pepsip77 said: still no bueno You can keep all the other files in their location, howevet the Main.java class needs to be undet src folder directly Link to comment Share on other sites More sharing options...
Hulla Posted August 31, 2017 Share Posted August 31, 2017 54 minutes ago, Neo said: You can keep all the other files in their location, howevet the Main.java class needs to be undet src folder directly Is there an ETA on when the scripts will be fixed? Link to comment Share on other sites More sharing options...
Neo Posted August 31, 2017 Share Posted August 31, 2017 1 hour ago, Hulla said: Is there an ETA on when the scripts will be fixed? Haven't looked into it yet, will do soon. Link to comment Share on other sites More sharing options...
Recommended Posts