How to add a jar to the boot classpath in java 11

前端 未结 2 454
逝去的感伤
逝去的感伤 2021-02-11 11:25

In my application which is running on Java 8 I used third party library which is using org.jboss.logmanager.LogManager So I added this jar in bootclass path and it works fine. B

2条回答
  •  不思量自难忘°
    2021-02-11 11:42

    I tried the following:

    (1) For me replacing -Xbootclasspath/p with -Xbootclasspath/a - Did not work

    (2) Then I tried to remove the whole line as this has been suggested by others -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p: /jboss-logmanager-.jar - Did not work

    (3) Then I also removed the logmanager from -Djboss.modules.system.pkgs=org.jboss.logmanager" and then it worked!

    So only the combination of 2+3 finally worked.

提交回复
热议问题