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.

swt

Thread view: 
foaud167 - 14 Nov 2005 09:00 GMT
hi
i just can't seem to build or run my swt apps out of eclipse.
could you please tell me how to do that
i am trying
java -Djava.library.path="..." -Dmain.class="..."
and i am getting
Exception in thread "main" java.lang.NoClassDefFoundError: ....
thanks
-mardini
Andrew Thompson - 14 Nov 2005 11:01 GMT
> i just can't seem to build or run my swt apps out of eclipse.
> could you please tell me how to do that

You could try the SWT forums at the Eclipse site,
<http://www.eclipse.org/newsgroups/index.html>.
HalcyonWild - 14 Nov 2005 13:12 GMT
> hi
> i just can't seem to build or run my swt apps out of eclipse.
[quoted text clipped - 5 lines]
> thanks
> -mardini

First thing when you get a NoClassDefFoundError. or a
ClassNotFoundException..

Check classpaths.
foaud167 - 14 Nov 2005 16:22 GMT
thanks
i figured it out
javac -classpath (path to swt*.jar file) *.java
java -classpath (path to swt libraries (dll or so); jar; code)
-Djava.library.path="path to libraries"


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



©2009 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.