The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement
where you can ask and answer Java programming questions.">
artima.com - a resource for Java and Jini developers
Artima | Search | Java | Design | JVM | Jini | Books | Seminars | Subscribe 


Java Answers Forum
March 2001

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

creating a self-extracting java executable

Posted by James Sobeck on May 05, 2001 at 4:42 PM

> hi,

> could anybody give me information,links,clues etc about how to go about creating a self-extracting java exe

> many thanks
> sapna


sapna,

i am not sure if in your question you mean a executable that will extract all of the files necessary to run the program (similar to a winzip self extracting exe) or if you mean a java program that is ran as an executable. the first is easy, just find a packaging tool. i think you are talking about the latter though.

there are a couple ways to do it. the easiest is using IB visual age or web gain visual cafe. you have to have the enterprise (or something like that) version, which is not the free one. they let you create native executables, though it will only run on the OS that you specify.

another way is using the JRE. on the java.sun.com web page, on the download page for the JRE (check all version, is might not be on the latest one), there is a tutorial for creating an executable using build scrips, or c files. the file will be large b/c a lot of the JRE is included.(you can trim it down depending on the resources the program uses).

lastly, there is a commercial tool called JET (download.com, etc.) that can be used for testing (maybe personal use is free, commercial is not). i am not quite sure how this program works, but in the end (don't get frustrated, it takes a little figuring out), you will have a java executable that doesn't even need a JRE, JSDK, or anything.

hope this helps,

Jimmy



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us