Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

How do you run an SWT application outside of Eclipse

Thread view: 
Mylo - 30 Nov 2005 16:39 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
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-)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.