lare96 Posted April 25, 2015 Share Posted April 25, 2015 For some reason whenever I try and export my script with my osbot-helper dependency (contains event state hierarchy and some utilities to avoid copying and pasting the same classes from script to script) I encounter a weird issue. When the bot first starts up (Failed to load local script : <class>): [INFO][04/25 01:29:32 PM]: Welcome to OSBot 2.3.64! [INFO][04/25 01:29:33 PM]: Loaded 2 RS accounts! [DEBUG][04/25 01:29:33 PM]: You last logged in as : Lare96 [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/AntiBanEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/AttackEnemyEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/NavigateTabsEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/LootItemEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/MouseMovementEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/EatFoodEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/event/impl/CameraRotationEvent.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/task/PlayerRunTask.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/task/AutoRetaliateTask.class [ERROR][04/25 01:29:34 PM]: Failed to load local script : org/cs/task/TargetMonitorTask.class [INFO][04/25 01:29:34 PM]: Loaded 1 local scripts and 0 custom random solvers! [INFO][04/25 01:29:35 PM]: You have 0 SDN scripts loaded. [INFO][04/25 01:29:35 PM]: Updated injection hooks for client revision : 77! [INFO][04/25 01:29:35 PM]: There are 138 scripts on the SDN. [DEBUG][04/25 01:29:35 PM]: OSBot is now ready! Then when I try and run the script: ERROR][04/25 01:31:12 PM]: Uncaught exception! java.lang.NoClassDefFoundError: org/helper/event/Event at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) at org.osbot.cOM1.run(im:387) 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: org.helper.event.Event 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) ... 8 more It's almost like the dependency isn't being bundled in with the JAR file I export my script in (I have it set up to include all dependencies). Anyone else have this problem, or know a solution? Quote Link to comment Share on other sites More sharing options...
Joseph Posted April 25, 2015 Share Posted April 25, 2015 (edited) you need to compile the depend folder with the "YOUR SCRIPT" folder. With out the source there not code to work with. edit: how exactly are your exporting it? when you export it do you have both folders selected? Edited April 25, 2015 by josedpay Quote Link to comment Share on other sites More sharing options...
lare96 Posted April 25, 2015 Author Share Posted April 25, 2015 you need to compile the depend folder with the "YOUR SCRIPT" folder. With out the source there not code to work with. edit: how exactly are your exporting it? when you export it do you have both folders selected? Quote Link to comment Share on other sites More sharing options...
lare96 Posted April 27, 2015 Author Share Posted April 27, 2015 ??? Can anyone help with this? Quote Link to comment Share on other sites More sharing options...