| Author |
Java on CD-ROM
|
Vinnie Jenks
Ranch Hand
Joined: Apr 26, 2004
Posts: 207
|
|
My company is creating a CD-ROM they'll be sending out to all of their customers. On it they would like to include a simple calculator for their products that has a simple database back-end (read-only). How can I package a Java app, say, using Swing, on a CD-ROM to where the users would not have to install the JRE (it would be on the CD)? In other words, how can I make a jar or another type of executable that can be clicked-and-run directly from the CD-ROM...how would I make a call to the local JRE on the CD? Thanks!
|
 |
Jeff Bosch
Ranch Hand
Joined: Jul 30, 2003
Posts: 804
|
|
I would create a batch file to run from the local JRE. If the batch file is on the root directory of the CD, the java.exe is in a jre/bin folder, and the app is in an app/ folder, and it's in a jar called app.jar, you could do something like the following in the bat file: /jre/bin/java.exe -jar app/app.jar Hope that helps.
|
Give a man a fish, he'll eat for one day. <br />Teach a man to fish, he'll drink all your beer.<br /> <br />Cheers,<br /> <br />Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
|
 |
 |
|
|
subject: Java on CD-ROM
|
|
|