Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

SWT jar problem

  Asked By: Clifton    Date: Apr 20    Category: Java    Views: 741
  

I have created a SWT project and packed it in JAR files, but I cannot
execute the jar (JAR without SWT executed well) :
Here is the log :

D:\JAVA\learn>dir *.jar
Volume in drive D is DATA
Volume Serial Number is 7424-1C02

Directory of D:\JAVA\learn

05/06/2003 10:59 AM 1,088 SWTtes.jar
1 File(s) 1,088 bytes
0 Dir(s) 1,017,307,136 bytes free

D:\JAVA\learn>jar tf SWTtes.jar
META-INF/MANIFEST.MF
TestSWT.class

D:\JAVA\learn>java -jar SWTtes.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/swt/widge
ts/Composite

D:\JAVA\learn>jar xf SWTtes.jar

D:\JAVA\learn>java TestSWT (This run well)

D:\JAVA\learn>

I have already put the SWT dll in JRE\bin; and add the dll also in the
system path, the SWT.jar I have added to CLASSPATH.
Could anybody help me ?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on SWT jar problem Or get search suggestion and latest updates.




Tagged: