...
Note: The jar file named “icu4j-71.1.jar” may not have the module-info.class file and will require the steps highlighted under the Adding module-info.class within the Jar file heading heading to create and include a module-info.class file within the jar file.
Note |
---|
Solving Error: automatic module cannot be used with jlink: com.ibm.icu from file:///usr/local/apps/jdk11_with_graal/jmods/icu4j-71.1.jarIf you an error when trying to implement Graal it is likely due to the icu4j-71.1.jar not including the module-info.class file. This causes this to not be seen as a module and as a result fails. To solve this, use the steps below
All Command lines:
|
Error: automatic module cannot be used with jlink: com.ibm.icu from file:///usr/local/apps/jdk11_with_graal/jmods/icu4j-71.1.jar
If you an error when trying to implement Graal it is likely due to the icu4j-71.1.jar not including the module-info.class file. This causes this to not be seen as a module and as a result fails.
To solve this, use the steps below
Generate the Module-info class for this module using the following:
jdeps --generate-module-info out icu4j-71.1.jar
Compile module-info.java to create module-info.class using:
javac --patch-module com.ibm.icu=icu4j-71.1.jar out/com.ibm.icu/module-info.java
Add the module-info.class into the jar file using:
jar uf icu4j-71.1.jar module-info.class
Ensure that the jar file and module-info.class are within the same folder.
All Command lines:
Code Block |
---|
jdeps --generate-module-info out icu4j-71.1.jar
javac --patch-module com.ibm.icu=icu4j-71.1.jar out/com.ibm.icu/module-info.java
jar uf icu4j-71.1.jar module-info.class |
Install into Jira /lib
Info |
---|
With this method of installing the additional scripting languages you will need to provide the relevant scripting jars into the Lib folder every-time you conduct a Jira upgrade. Using the method above (Install into JDK distribution) means that you will only need to install these languages once. (As long as you are using the same Java version for the new instance) |
...