swt

F

foaud167

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
 
H

HalcyonWild

foaud167 said:
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


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

Check classpaths.
 
F

foaud167

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top