aspose file tools*
The moose likes Beginning Java and the fly likes how to make a setup package for a java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to make a setup package for a java program" Watch "how to make a setup package for a java program" New topic
Author

how to make a setup package for a java program

xy zhang
Greenhorn

Joined: May 18, 2005
Posts: 14
I need to make a setup package for a java program. pack all libs,docs and classes,etc into this package.

When the user double click the package(for example my.exe),it will decompress files into a directory and deploy themselves.

In a word, it just like installing MS office in windows.

Please give a hand! Thanks! :roll:
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
Aside from using some third-party tool like InstallAnywhere or something, you can package your application as an "executable JAR file." Or, you might look into distributing your application via the web with Java WebStart.


James Carman, President<br />Carman Consulting, Inc.
xy zhang
Greenhorn

Joined: May 18, 2005
Posts: 14
Thanks.
But there is something I have no idea. How to package my application as an "executable JAR file."

Would you pls give me some example?
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Have a look at the Jar Tutorial
xy zhang
Greenhorn

Joined: May 18, 2005
Posts: 14
Hi Nigel,
I have a look at Jar Tutorial. Does "excutable" means excuting the jar file by using "java -jar jar-file"? If so, that is not what I need.

I want to find something can perform the following:

1,by double click it, it will decompress itself to a specified dir.
2,during decompressing, the user can set something for example(where to install, what components to be installed, etc)
 
jQuery in Action, 2nd edition
 
subject: how to make a setup package for a java program