- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Installed bundled JVM not upgraded properly on Upgrade install
- 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
Installed bundled JVM not upgraded properly on Upgrade install
Our previous release of my product uses an Java 1.8 embedded vm and we installed it.
Our new version in development we are embedding a Java 17 vm we created.
When I run the installer to upgrade my product to the new version it is just adding the Java 17 files on top of the existing in jre directory. So it ends up with Java 8 and Java 17 files in the jre directoy. And this java won't run.
For example I get an error like this
C:\Program Files\myproduct_installation\jre\bin>java -version
JVMJ9VM149E <JAVA_HOME>/lib/ext is no longer supported. Please add the required libraries/jar files to the classpath.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Is there a way to specify that it needs to remove the old jre and put install the new one? Any other ideas?
I didn't see anything on the JVM Settings tab.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Just noticed this - https://docs.revenera.com/installanywhere2021sp1/Content/helplibrary/AdvJREHandling.htm?Highlight=Configuring%20Upgrade%20Installers%20that%20Use%20a%20Different%20JRE%20from%20the%20Previous%20Installer Looks like it might do what I need. Will give it a shot.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Didn't seem to work. Still investigating. Anyone have any thoughts?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Reading the doc , it seems to imply that this option is for an Upgrade installer. We are doing overinstall and not a Upgrade installer. So I believe that is what is going on here and I will have to manage removing the jvm folder during install phase so that IA can then lay down the new bundled jvm later.
