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
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 - Did not work-Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p: <path_to_jboss_logmanager>/jboss-logmanager-<version>.jar
(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.
In JAVA jdk 11
and above, if you are developing a java console app then you only need to set the PATH
environment variable. You do not need to set the CLASSPATH
environment variable.