Sujamma Posted July 1, 2020 Posted July 1, 2020 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.
Camaro Posted July 1, 2020 Posted July 1, 2020 You need to extract the jar into the output root in artifacts
Sujamma Posted July 1, 2020 Author Posted July 1, 2020 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?
Sujamma Posted July 1, 2020 Author Posted July 1, 2020 58 minutes ago, Camaro said: Your reply is empty
Camaro Posted July 1, 2020 Posted July 1, 2020 32 minutes ago, Sujamma said: Your reply is empty it was an image https://i.imgur.com/1oAtKn1