digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

How to Bundle your own JRE (10.5.2 Java Installer)

I would like to create an installer that uses a java that is provided as part of the download. I don't see how I execute it using the Java Configuration Panel. There is no option there to tell it where the Java Home directory is. Did I miss it? My package has my application and it has a directory called nava that has a special jre in it. I want to run my application with the executable in nava/bin....



A second question is how to create two versions in the same package. I want to have a version that uses Java installed on the system and one that doesn't. Is there anyway to do this without having two different configurations.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to Bundle your own JRE (10.5.2 Java Installer)

Hello,
I would like to create an installer that uses a java that is provided as part of the download. I don't see how I execute it using the Java Configuration Panel. There is no option there to tell it where the Java Home directory is.
In order to achieve that you can go in the “Java Products” page and in the Java Settings tab use the [Add JEW Bundle...] button to bundle a JRE by selecting the related JRE
from the JRE - list.
Please note that the installed Java Product will use the bundle over any JRE version installed on the target machine. The content of this folder will be added automatically in the "Destination" folder.
A second question is how to create two versions in the same package. I want to have a version that uses Java installed on the system and one that doesn't. Is there anyway to do this without having two different configurations.
You can have another build that will not contain the related JRE. In order to achieve that you can go in the “Media” page and use the [ New Build ] toolbar button or the “New” context menu option and select the desired build type.

Please note that in the "Organization" page, in the Build section of a feature property you can chose to remove the feature from some builds. If a feature is removed from a build, all other resources that demand that feature (components, component members, class entries, type libraries...) will also be removed from the build.

Please let us know if that helped, otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”