This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes creating setup file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "creating setup file?" Watch "creating setup file?" New topic

creating setup file?

hoang vo

Joined: May 03, 2005
Posts: 14
just out of curiousity since i dont know to post it.

i have a simple program and wanted to make a setup file to install into other computers.

i wanted to know how to do so.
any help?
ghazanfar khan
Ranch Hand

Joined: Apr 18, 2005
Posts: 81
Hello hoang,

you can make batch file into which you can specifiy your directories to create, and from there you can call your jar file. Below is the sample program might help ful to you


set JAVAVER=1.5.0
SET JavaBinPath=%JAVADIR%\bin

call %JavaBinPath%\javaw Sample.MainClass > sampleLog.log 2>&1


In this way you can call your jar file, but dont forget while creating your jar file mention your program main class in to your manifest.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

JSmooth is an excellent tool.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: creating setup file?
Similar Threads
setup file Icon
Security of Java Jar file
Struts Properties File
PUT request method not working
WPS 6.1 Deployment Template