Hi,
I have created .jar file successfully using eclipse .Now want to create
.exe file.I tried using java launcher 3.201 but it gives the following
error.
=========================== start launching main class
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jdesktop/jdic/tray/SystemTray
at Tray.<init>(Tray.java:29)
at Tray.main(Tray.java:227)
=========================== end of launching main class
Is it because I m using jdic? Will I need to include jdic.jar file ? If
yes where exctly to include it?
In eclipse its not giving any problem since jdic.jar file is included
as external jar file.
Can anyone help me in this regards???
weironghai@gmail.com - 29 Mar 2006 09:24 GMT
no ,i think java file is no need to .exe
about .jar you can use jar command
Oliver Wong - 29 Mar 2006 16:15 GMT
> Hi,
> I have created .jar file successfully using eclipse .Now want to create
[quoted text clipped - 15 lines]
> as external jar file.
> Can anyone help me in this regards???
The jdic.jar file should be on the classpath. You can either modify the
system environment variables to add it to the path, or, when you run the JAR
file, e.g. via "java -jar foo.jar", specify it there, e.g. "java -jar
foo.jar -cp C:\path\to\jdic.jar"
- Oliver
Roedy Green - 29 Mar 2006 19:29 GMT
>Exception in thread "main" java.lang.NoClassDefFoundError:
>org/jdesktop/jdic/tray/SystemTray
Your problem sounds like nothing to do with EXE wrapping but more
likely using a JDK 1.5 on a 1.6 class. SystemTray is 1.6+ only

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.