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.lang.java.programmer/browse_thread/thread/fe
9e7151a0c7c6f/4abbacd8717ac318?lnk=st&q=eclipse+swt+command+line&rnum=1#4abbacd8
717ac318),
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.
IchBin - 30 Nov 2005 17:01 GMT
> 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
[quoted text clipped - 19 lines]
> thanks.
> mylo.
This link should help you out..
http://www.developer.com/java/other/article.php/10936_3330861_2

Signature
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)