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.

Json Minimal Class Error

Featured Replies

Hey there,

As I was making a script for myself I felt the need to have an accurate price grabber to determine my profit/hour.
After I finished the code I went on to test it on my script, but I encountered some errors. I hadn't encountered any problems with the price grabbing method when using the static main function, but when I used the exact same method in my script it gave me following errors:

java.lang.NoClassDefFoundError: com/eclipsesource/json/JsonObject
	at Utilities.Prices.getPrice(Prices.java:51)
	at Variables.Variables.setPrices(Variables.java:30)
	at Main.onStart(Main.java:66)
	at org.osbot.rs07.event.ScriptExecutor.IiiIiiiiiiII(yh:85)
	at org.osbot.rs07.event.ScriptExecutor.start(yh:42)
	at org.osbot.iA.IiiIiiiiiiII(uab:80)
	at org.osbot.vB.iiIIiiiiiiiI(ju:144)
	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: com.eclipsesource.json.JsonObject
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 10 more

 

I'm using Json Minimal (https://github.com/ralfstx/minimal-json) as a library imported with Maven. Any idea why this is happening?

Thanks in advance,
Hybris

  • Author
12 minutes ago, Chris said:

u need the source built with the jar

Why doesn't it work like this?

4 hours ago, Hybris said:

Why doesn't it work like this?

I would answer you, but I can't really.

Just open the jar with a zip viewer and drag in the packages etc. in the library jar (The json one)

 

EDIT: Or even better, import the github java classes directly into your project.

Edited by Medusaa

  • Author
15 hours ago, Medusaa said:

I would answer you, but I can't really.

Just open the jar with a zip viewer and drag in the packages etc. in the library jar (The json one)

 

EDIT: Or even better, import the github java classes directly into your project.

Yea I'll just pop the java classes in there, that should work 😛

Just hoped it would work with Maven since it's one less thing to look at, but ah well 😛

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.