Can No Longer Start GUI App
I am learning the ropes of the IntelliJ GUI designer, and had a little project going. I created a new form and decided to try the jgoodies layout, but the decided to just delete that form an move one. Although I have deleted the form and class, when I try to run my existing code I now get:
Exception in thread "main" java.lang.NoClassDefFoundError: com/jgoodies/forms/layout/FormLayout
at aero.timco.chute.MainScreen.$$$setupUI$$$(MainScreen.java)
at aero.timco.chute.MainScreen.<init>(MainScreen.java:27)
at aero.timco.chute.MainScreen.main(MainScreen.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.ClassNotFoundException: com.jgoodies.forms.layout.FormLayout
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 8 more
I saw in another post that I could fix it by adding the jgoodies jar... but I don't want to use jgoodies now. I have greped the project tree and I can't seem to find anything to remove the reference. How can I extricate this from my project?
-Benjamin
Please sign in to leave a comment.
Have you tried doing a full rebuild of your project?
Yes, invalidated the caches... and did a full rebuild. I can't figure out why it still thinks it needs jgoodies.
Please try to search for the string FormLayout in *.form
Dmitry,
Thanks. That found the problem. One of the JPanels I had created in another form was using FormLayout. Is that the default layout manager for a JPanel or did playing around with the other layout manager cause it to start getting set that way?
Regardless, I appreciate the help. BTW -- is there any way to open the *.form files in IntelliJ as an XML file?
-Benjamin
No, it's not the default layout manager.
Viewing forms as .xml is only supported in internal mode (idea.is.internal=true in idea.properties).