This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: installer not using the JAVA_HOME value from the response file
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 29, 2010
09:06 AM
installer not using the JAVA_HOME value from the response file
Hi
I'm running InstallAnywhere 2009 Enterprise, in silent mode, with a response file,
which looks like:
JAVA_HOME=C:\\Program Files\\Java\\jre1.5.0_14
And then I'm modifying some batch files to point to JAVA_HOME, but the installer just picks the default java6 JRE on my machine.
No errors in the install log, no indication that anything went wrong.
Thanks, Noel Grandin
I'm running InstallAnywhere 2009 Enterprise, in silent mode, with a response file,
which looks like:
JAVA_HOME=C:\\Program Files\\Java\\jre1.5.0_14
And then I'm modifying some batch files to point to JAVA_HOME, but the installer just picks the default java6 JRE on my machine.
No errors in the install log, no indication that anything went wrong.
Thanks, Noel Grandin
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 29, 2010
09:31 AM
The best way to be sure the installer always uses the JVM version you want is to bundle the VM!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 29, 2010
09:33 AM
Thanks Vlad, I would do that, but it causes a space issue - I run a whole variety of installers, adding the JRE into every single one would unacceptable space bloat.
The pity of this is that it used to work fine in earlier versions of InstallAnywhere.
We've been using this feature for about 4 years now, its only in InstallAnywhere 2009 that it started to break.
Regards, Noel Grandin
The pity of this is that it used to work fine in earlier versions of InstallAnywhere.
We've been using this feature for about 4 years now, its only in InstallAnywhere 2009 that it started to break.
Regards, Noel Grandin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 29, 2010
10:32 AM
Most likely what happened is that the JVM search algorithm: from what you say it seems that it prefers to use a newer JVM (1.6) instead of an older one (which isn't too bad after all, I mean, is there a reason for which you would like to have the installer run against an older JVM version?)
I tried to check if there were any JAVA_HOME issues, and in the IA 2009 readme I've found this fixed issue:
IOC-000075163 The $JAVA_HOME$ variable is not properly set when the user chooses a VM that is under system32 directory.
I know this is not your case but who knows what side effect could the fix of the above have...
I tried to check if there were any JAVA_HOME issues, and in the IA 2009 readme I've found this fixed issue:
IOC-000075163 The $JAVA_HOME$ variable is not properly set when the user chooses a VM that is under system32 directory.
I know this is not your case but who knows what side effect could the fix of the above have...
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)