C:\>java -classpath F:\test\Java01\bin; frmMain
And get a dreaded:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/dyno/
visual/swing/layouts/GroupLayout
at frmMain.initComponents(frmMain.java:19)
at frmMain.<init>(frmMain.java:15)
at frmMain$1.run(frmMain.java:46)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.dyno.visual.swing.layouts.Group
Layout
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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 11 more[
C:\>
Reading it I notice the "org/dyno/visual/swing/layouts/GroupLayout", after a bit of searching I find the JAR file and place it in:
F:\test\Java01\bin\.plugins\org.dyno.visual.swing\layoutext
I try appending the classpath:
C:\>java -classpath F:\test\Java01\bin;F:\test\Java01\bin\.plugins\org.dyno.visual.swing\layoutext frmMain
Same error.
Help Please
For the record I did not find much documentation on distributing java programs built with VS4E
I find the JAR file and place it in: F:\test\Java01\bin\.plugins\org.dyno.visual.swing\layoutext
Ouch What's the JAR name ? Let's say it's called bryan.jar. Put in in F:\test\Java01\bin. Run your program using java -classpath F:\test\Java01\bin;F:\test\Java01\bin\bryan.jar frmMain.
What about multiple entries? In any case, the OP used kind of a random location anyway; only reason it was there was a belief it needed to match Eclipse installation directory hierarchy,