• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating setup file?

 
hoang vo
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSmooth is an excellent tool.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic