Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] SWT jar problem

Dear all,

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 ?
Thank you.

Regards,

herman




Back to the top