cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
roshantamrakar
Level 2

Build generated in InstallAnywhere 2021 SP2 with adoptium jdk-17.0.8+7adoptium jdk-17.0.8+7 fails to launch

We tried to create an installer for application using a manual java VM created from adoptium jdk-17.0.8+7. The installer does not run but when we downgraded java to adoptium jdk-17.0.7+7 the installer works fine.

The install anywhere application used was InstallAnywhere 2021 SP2.

We were unable to know the reason for this error. Can anyone help me on this?

0 Kudos
(6) Replies
vjayaraman
Revenera
Revenera

A new JRE enhancement patch in Java 11 and Java 17 causes installers to crash due to new restrictions on ZipFS. As part of the fix for JDK-8251329, restrictions were added to the ZipFS provider to throw an exception if opening a ZIP file that contained entries with "." or ".." in its name elements. This behavior change may be problematic in older environments where modification of such ZIP files may be difficult. In order to overcome this issue, a new system property was added that can be used to revert to the original behavior.

To solve the issue,

1. Navigate to Project->JVM Settings->Installer Settings

2. Add argument -Djdk.nio.zipfs.allowDotZipEntry=true in Additional arguments.

0 Kudos

Thank you @vjayaraman for the feedback. However, it did not solve the problem. For now, we went ahead with jdk-17.0.7+7. If we have to go to 17.0.8 in future, I will post a new thread with my question.

0 Kudos

Hello @vjayaraman 

We are facing the same issue with our Installers not launching with Java 17.0.8 and Java 11.0.20 versions. We tried the JVM argument as specified by you in the above comment in the Addition arguments. But it did not solve the problem. Even with the argument being set, the installers are not launching. Could you please provide some solution for this. 

vjayaraman
Revenera
Revenera

Linux or Windows?

If its Linux,

set JAVA_TOOL_OPTIONS= -Djdk.util.zip.disableZip64ExtraFieldValidation=true environment variable.

You need to set it in the /etc/environment

0 Kudos

Thanks for the reply @vjayaraman . If we add the additional arguments in Installer Settings, does it not work for linux ? Do we need to do it separately by setting the JAVA_TOOL_OPTIONS ? 

0 Kudos
vjayaraman
Revenera
Revenera

In Linux,

You need to set environment variable. Goto etc/environemt file then set JAVA_TOOL_OPTION =-Djdk.nio.zipfs.allowDotZipEntry=true

0 Kudos