• 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

bundling jre with the application

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing a presentation software in java.

To deliver it, I need to create an installer for the software. What I want to do is to add JRE to the installer so that is installs JRE automatically, if it is not already installed.

How can I do this?

Please help

Samyak
 
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Basically you simply need to bundle the JRE files with your distributable, and then unzip them into a directory in your installation directory. Then have your startup script call use that JRE by calling the java command via a relative path. There are installers (such as install4j ) that will automatically do this for you, including the generation of the platform specific startup script.

If you want to see how others do this, download and install an application that does this, look at how it is set up, and reverse engineer the concepts. You will want to look at how the directory structure is set up, and the startup script or executable they use. SmartCVS (be sure to grab the installer with JRE when you download) and IntelliJ IDEA are two such applications. that I know of off hand.
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Samyak,

You may also want to look into Nullsoft Scriptable Install System (NSIS) at this URL http://nsis.sourceforge.net/Main_Page. I've used it before and it is quite simple and easy to bundle the JRE as you've mentioned.

Jeff
reply
    Bookmark Topic Watch Topic
  • New Topic