Jump to content

Weird ClassNotFound Error?


Recommended Posts

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..





All help greatly appreciated! Thanks in advance :D


Link to comment
Share on other sites

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:


Edited by ikk
  • Like 1
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.

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...