aspose file tools*
The moose likes Beginning Java and the fly likes how to make a program executable by clicking on an icon on desktop ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to make a program executable by clicking on an icon on desktop ???" Watch "how to make a program executable by clicking on an icon on desktop ???" New topic
Author

how to make a program executable by clicking on an icon on desktop ???

david eberhardt
Ranch Hand

Joined: Jul 02, 2002
Posts: 158
Hi,
I'm writing a small desktop program that will be used to help 3rd grader practice his addition, subtraction, etc .
Can you help me with how to make it executable by simply clicking on a desktop icon that represents a shortcut to start up the program?
(one other option I'm considering is to make it a java applet and place a shortcut to the html page - I know that will work fine; but I'd like to know the other way also please.)
Thank You.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Oh my goodness. This has been covered SOOO many times.
You can create a batch file that launches the application or you can place a shortcut to a JAR file which will launch the application via the MANIFEST.
If you want to spend a lot of $$$$$ you can buy a program that converts JAVA to a binary EXE.
See this link for JAR files. (prefered method)
http://java.sun.com/docs/books/tutorial/jar/index.html


GenRocket - Experts at Building Test Data
david eberhardt
Ranch Hand

Joined: Jul 02, 2002
Posts: 158
Originally posted by Gregg Bolinger:
Oh my goodness. This has been covered SOOO many times.

See this link for JAR files. (prefered method)
http://java.sun.com/docs/books/tutorial/jar/index.html

thanks for the info.
I imagine that it has been asked and answered before but it is sometimes difficult to track down similar topics by searching thru these topic threads.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
...and you may want to take a look at this quick tutorial on creating an executable JAR file.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to make a program executable by clicking on an icon on desktop ???