Jump to content

Weird ClassNotFound Error?


Recommended Posts

Posted

Hey everyone. I've spent way too much time today tinkering with GUIs. I made one which worked fine but was a bit too basic looking for me. So, I decided to try using WindowBuilder, but the code that produced ended up simply crashing my script on launch every time without any errors.

 

So I instead tried to use JFormDesigner to make the GUI. I've made one which I am quite pleased with, however it is throwing me a ClassNotFound error which I am unsure how to solve.

 

Here's the error:

16 01:50:41 AM]: Loading GUI
[ERROR][01/16 01:50:41 AM]: Uncaught exception!
java.lang.NoClassDefFoundError: com/jgoodies/forms/factories/DefaultComponentFactory
	at Core.GUI.initComponents(GUI.java:30)
	at Core.GUI.<init>(GUI.java:24)
	at Core.ikkDefenders.onStart(ikkDefenders.java:72)
	at org.osbot.rs07.event.ScriptExecutor.IiiiIIiIII(qf:246)
	at org.osbot.rs07.event.ScriptExecutor.start(qf:8)
	at org.osbot.coM8.run(aj:153)
	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.jgoodies.forms.factories.DefaultComponentFactory
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 9 more

They should all be there, I'm not sure why this is giving me issues..

 

Screenshot: 

http://i.imgur.com/kYaKoMl.png

 

All help greatly appreciated! Thanks in advance :D

 

Posted (edited)

Thanks for the help guys! Didn't know that OSBot wouldn't automatically have support for JGoodies. Also, I found out the issue which was causing the script to crash upon start up. Was due to me trying to use a font that was unsupported. Looks like my GUI has a JFormDesigner watermark on it that I cannot get rid of, but it could be worse

 

Got rid of all the JGoodies dependencies and unusual fonts and here she is:

n90Zv1j.png

Edited by ikk
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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