Jump to content

Exporting script with dependencies?


lare96

Recommended Posts

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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