Jump to content

NoClassDefFoundError and I have no idea how to solve it


Recommended Posts

Posted

I am trying to create a new script with IntelliJ Idea, but whenever I try to use my Utility.jar, I get this error:

java.lang.NoClassDefFoundError: Utility/Sleep
    at Main.TanHide(Main.java:80)
    at Main.onStart(Main.java:48)
    at org.osbot.rs07.event.ScriptExecutor.iiiIIiiiiiii(hl:205)
    at org.osbot.rs07.event.ScriptExecutor.start(hl:125)
    at org.osbot.CB.iiiIIiiiiiii(jz:262)
    at org.osbot.rA.IIiiiiiiiiiI(lz:119)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Utility.Sleep
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 9 more

It lets me import the script, use the methods and so on. The script compiles fine, but whenever I try to use the script inside the OSBot client it fails with the error. 

I am not really sure what information would help resolve this, so I will be happy to clarify any questions. Any kind of help is appreciated. 

Posted
19 minutes ago, Camaro said:

You need to extract the jar into the output root in artifacts

Output root? I am not sure what that is. I designated the output folder in artifacts, the jar is successfully created in the folder I chose. Do you mean I should set the output directory to a specific folder?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...