Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Exporting script with dependencies?

Featured Replies

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?

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 by josedpay

  • Author

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?

 

lImsj59.png

 

vQHjfxV.png

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.