-
Type:
Enhancement
-
Resolution: Duplicate
-
Priority:
P4
-
Affects Version/s: 9
-
Component/s: hotspot
$ jdk/bin/jlink --output image --module-path jdk/jmods --add-modules java.base
$ image/bin/java -javaagent:agent.jar Hi
Error occurred during initialization of VM
Could not find agent library instrument on the library path, with error: dlopen(libinstrument.dylib, 1): image not found
-javaagent is only supported when java.instrument module is present. The error message could be improved.
$ image/bin/java -javaagent:agent.jar Hi
Error occurred during initialization of VM
Could not find agent library instrument on the library path, with error: dlopen(libinstrument.dylib, 1): image not found
-javaagent is only supported when java.instrument module is present. The error message could be improved.
- duplicates
-
JDK-8180709 java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error
-
- Resolved
-
- relates to
-
JDK-8180709 java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error
-
- Resolved
-