Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to make a setup package for a java program

 
xy zhang
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
xy zhang
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 682
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the Jar Tutorial
 
xy zhang
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic