Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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