• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java on CD-ROM

 
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 808
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic