-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b131
-
Not verified
Jlink allows users to specify a target set of jmods which could be from a different operating system and architecture than the host which is executing the Jlink command.
This support mostly works but fails when attempting to select the JVM to be included in the generated image.
The problem is that the ExcludeVMPlugin is only checking the running application to see what platform it’s running on to formulate the jvm name. It should be checking the target collection of jmods to determine the OS and Architecture.
private static String jvmlib() {
String lib = "libjvm.so";
if (isWindows()) {
lib = "jvm.dll";
} else if (isMac()) {
lib = "libjvm.dylib";
}
return lib;
}
This support mostly works but fails when attempting to select the JVM to be included in the generated image.
The problem is that the ExcludeVMPlugin is only checking the running application to see what platform it’s running on to formulate the jvm name. It should be checking the target collection of jmods to determine the OS and Architecture.
private static String jvmlib() {
String lib = "libjvm.so";
if (isWindows()) {
lib = "jvm.dll";
} else if (isMac()) {
lib = "libjvm.dylib";
}
return lib;
}
- is cloned by
-
JDK-8163952 jlink exclude VM plugin does not support static libraries
-
- Closed
-
- relates to
-
JDK-8163256 jlink/plugins/ExcludeVMPluginTest.java failed with Selected VM server doesn't exist
-
- Closed
-