-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newer releases of Java 1.8 JRE/JDK now cause CIMTool startup to fail with an ICU4J error during initialization. #14
Comments
I have verified that the latest release of the jar at the time of this writing icu4j-71.1.jar file in Maven Central's Sonatype repository (refer to: https://oss.sonatype.org/#nexus-search;gav~com.ibm.icu~icu4j~~~~kw,versionexpand) was created by 1.8.0_282-b08 and has it's manifest specified with the Bundle-RequiredExecutionEnvironment: JavaSE-1.7 setting (see the manifest below for details). Therefore it may be possible that an upgrade of the jar should minimally be compatible with CIMTool without a custom build. Note also that further investigation determined the following transitions points. This may be useful in determining which version of the jar file may be required to be upgraded to. The release boundaries are: release 56.2: Bundle-RequiredExecutionEnvironment: J2SE-1.5 (this is the last release that required 1.5 or higher)
|
This has been resolved by replacing the icu4j-3.4.4.jar file in the \lib folder of the Kena project with release 71.1 of the ICU4J project jar (icu4j-71.1.jar). Testing was completed against the newest Java 8 releases from both Oracle and Zulu OpenJDK with success. However, what should be noted is that this allows CIMTool (as of 1.10.0.RC2) to be run against new JRE/JDKs, but release prior to this release will no longer launch successfully. The below screenshot illustrates the error that occurs when older releases are launched against new release of Java 8. As described in this stack overflow entry the cause of this error is a result of the following:
So unfortunately, given the nature of the issue, by providing a fix for the original error we have the unavoidable side affect that older versions can not run against new Java 8 releases. There is no critical need to have older releases of CIMTool on a system as the latest CIMTool release should have all functionality of prior releases and projects created in older versions are fully compatible with new releases of CIMTool. However, if someone does desire to have both older and new CIMTool releases co-exist on a system the following two approaches can be used to allow the older releases to function: Both an old and a new version of Java 8 JRE/JDKs will need to be installed on the user's system (in two distinct locations) and then the -vm parameter explicitly passed in during a call to the CIMTool.exe executable. This can be accomplished via either:
|
Issue is being closed as a result of the solution previously described in earlier comments. |
Given that CIMTool currently utilizes the older Eclipse 3.x plugin foundation it means the CIMTool must run on a 64-bit Java 1.8 JRE/JDK. New supported releases are currently available for this older version of Java at either:
https://www.java.com/en/download/ (The latest Oracle release)
or
https://www.azul.com/downloads/?package=jdk#download-openjdk (Azul OpenJDK)
At the time of the writing of this issue both of these release options are currently at version 333.
It has been discovered that at some point in the release history of these JRE/JDKs that the ICU4J project utilized for internationalization support features was upgraded in the JRE/JDK. Therefore, the ICU4J jar file originally included in the release of CIMTool (i.e. icu4j-3.4.4.jar in the Kena project \lib folder) now produces one of the two flavors of error messages in the console (as shown below) on either startup and/or loading of a CIMTool project.
Presently, we have been unable to determine which specific release that this occurred in but detailed testing with older releases of the Java 1.8 JRE have narrowed it down to somewhere between release 201 and the latest release (i.e. 333). As a result new users of CIMTool that install CIMTool and a newer Java 1.8 JRE/JDK are unable to fully utilize CIMTool. Research into the issues has provided various sources of information that may be helpful in resolving the problem:
The text was updated successfully, but these errors were encountered: