File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "creating setup file?" Watch "creating setup file?" New topic
Author

creating setup file?

hoang vo
Greenhorn

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 JAVAPATH=c:\JDK
set JAVADIR=%JAVAPATH%%JAVAVER%
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
    
    6

JSmooth is an excellent tool.


GenRocket - Experts at Building Test Data
 
Don't get me started about those stupid light bulbs.
 
subject: creating setup file?