aspose file tools*
The moose likes Beginning Java and the fly likes deploying App Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "deploying App" Watch "deploying App" New topic
Author

deploying App

Hiep Nguyen
Ranch Hand

Joined: Oct 26, 2001
Posts: 46
hello !
i have finished an App., just a samples, now i don't know how to deploy it, how an can make an install file as any other Appliactions?
one more thing, in java file how i can know where my App is installed by user?
thank you !!!
Gaurav Mac Mathur
Ranch Hand

Joined: Feb 19, 2002
Posts: 47
Well,I dont think there is any _Short_ way of making a Installer, the best way will be to create a Executable Jar.
If you Insist to make a Installer you can use windows API's in VB or something ( Not sure ) to make user friendly Installer to copy jars and modify classpath kind of things.
Cheers
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
how an can make an install file as any other Appliactions?
You might want to take a look at Zero G's InstallAnywhere (http://www.installanywhere.com).
one more thing, in java file how i can know where my App is installed by user?
The following example is a bit of a hack way to determine the location that a Java app is running in. Perhaps someone else would have a different idea.
[ July 19, 2003: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

I use a .properties file to hold things like "where the app is installed by the user". I use the (free) InnoSetup installer program, and after installation, it runs a little program that modifies that .properties file to record the directory where it was installed.
Granted, this doesn't help if the user moves the application after install, but I document that properties file. I figure that if they're advanced enough to be mucking about moving things after install, they advanced enough to change that little file. It's not foolproof, but (truthfully) my mother can manage to use it, so...


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: deploying App