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 / First Aid / March 2006

Tip: Looking for answers? Try searching our database.

creating a .exe file using Java Launcher

Thread view: 
vims - 29 Mar 2006 08:22 GMT
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.



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



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