M
Mylo
I created a SWT application using the Eclipse IDE, and it runs well.
However, when I export the application to a jar file, it does not run
correctly.
When I run the program with the following line:
java -jar ldaptool.jar
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/custom/VerifyKeyListener
at Main.main(Main.java:11)
I looked at the following thread
(http://groups.google.com/group/comp...ipse+swt+command+line&rnum=1#4abbacd8717ac318),
but moving the swt.jar and dll files into the same directory as the jar
file did not change the error message.
I'm not sure if I need to be setting the classpath. I've tried a
couple of classpaths which included the swt.jar, but I still received
the same errors. Any help would be appreciated.
thanks.
mylo.
However, when I export the application to a jar file, it does not run
correctly.
When I run the program with the following line:
java -jar ldaptool.jar
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/custom/VerifyKeyListener
at Main.main(Main.java:11)
I looked at the following thread
(http://groups.google.com/group/comp...ipse+swt+command+line&rnum=1#4abbacd8717ac318),
but moving the swt.jar and dll files into the same directory as the jar
file did not change the error message.
I'm not sure if I need to be setting the classpath. I've tried a
couple of classpaths which included the swt.jar, but I still received
the same errors. Any help would be appreciated.
thanks.
mylo.