Jack Posted June 29, 2014 Share Posted June 29, 2014 (edited) It works when I run in eclipse but not in osbot [ERROR][Bot #1][06/29 02:34:40 PM]: Error in bot executor! java.lang.NoClassDefFoundError: org/.../.../... <- I took out the package path at Core.myScriptClass(Core.java:60) <- edited class name at Core.startScript(Core.java:56) at Core.onStart(Core.java:32) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ScriptExecutor.java:80) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.WebElement 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) ... 5 more Edited June 29, 2014 by Jack Link to comment Share on other sites More sharing options...
Mysteryy Posted June 29, 2014 Share Posted June 29, 2014 It works when I run in eclipse but not in osbot [ERROR][Bot #1][06/29 02:34:40 PM]: Error in bot executor! java.lang.NoClassDefFoundError: org/.../.../... <- I took out the package path at Core.myScriptClass(Core.java:60) <- edited class name at Core.startScript(Core.java:56) at Core.onStart(Core.java:32) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ScriptExecutor.java:80) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.WebElement 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) ... 5 more Is this a script that you are trying to make? If so what is on those lines in the class that is giving the error? Link to comment Share on other sites More sharing options...
Khaleesi Posted June 29, 2014 Share Posted June 29, 2014 Can you post your onStart() Method here? Link to comment Share on other sites More sharing options...
Jack Posted June 29, 2014 Author Share Posted June 29, 2014 Is this a script that you are trying to make? If so what is on those lines in the class that is giving the error? Can you post your onStart() Method here? Im using an external library. I just imported the wrong jar file I think :P Im seeing if it works now. Link to comment Share on other sites More sharing options...
Pandemic Posted June 29, 2014 Share Posted June 29, 2014 You can't use external library's because it's not in the client's class path. Link to comment Share on other sites More sharing options...
Jack Posted June 29, 2014 Author Share Posted June 29, 2014 You can't use external library's because it's not in the client's class path. I cant use an external library with osbot? Or does the library have to be already downloaded on the user's comp? Link to comment Share on other sites More sharing options...
Mysteryy Posted June 29, 2014 Share Posted June 29, 2014 I cant use an external library with osbot? Or does the library have to be already downloaded on the user's comp? You tried to add the library to a resources package? Link to comment Share on other sites More sharing options...