【发布时间】:2022-12-02 04:23:18
【问题描述】:
I used below command to activate jmx and also needed javaagent in my program and it worked fine in java 11. the command is as below:
java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8071
-javaagent:D:\resources\aspectjweaver-1.9.7.jar -jar app.jar
but when i upgraded java to java 17 program exit unexpectedly without any exception. does java 17 need any circumstances in order to use java options with java tool options?
any help would be appreciated.
I define JAVA_TOOL_OPTIONS environment variable but my problem doesn't fix.
【问题讨论】:
-
I would suspect that aspectj 1.9.7 is not yetreadyto handle Java 17 code || reading the release notes for 1.9.7 we find: "AspectJ 1.9.7 supports Java 15 & Java 16" (I assume that also applies to the agent)