Reference URL:
https://dzone.com/articles/how-use-verbose-options-java
Command line, eg:
java -verbose:class -cp "abc.jar" com.test.Hello
In Eclipse, menu(in windows: File, Edit, Source, Refactor, etc...):
Run > Run Configurations.
Select correct Configuration from left panel, go to tab: (x)= Arguments
in textbox from group: VM arguments:
paste:
-verbose:class
then will get sysout in eclipse console
eg:
[Loaded org.slf4j.helpers.SubstituteLoggerFactory from file:/<maven path>/.m2/repository/org/slf4j/slf4j-api/1.7.13/slf4j-api-1.7.13.jar][Loaded org.slf4j.Logger from file:/<maven path>/.m2/repository/org/slf4j/slf4j-api/1.7.13/slf4j-api-1.7.13.jar][Loaded org.slf4j.helpers.NOPLoggerFactory from file:/<maven path>/.m2/repository/org/slf4j/slf4j-api/1.7.13/slf4j-api-1.7.13.jar][Loaded org.slf4j.helpers.Util from file:/<maven path>/.m2/repository/org/slf4j/slf4j-api/1.7.13/slf4j-api-1.7.13.jar][Loaded java.lang.SecurityException from C:\Program Files\Java\jdk1.8.0_192\jre\lib\rt.jar][Loaded java.util.LinkedHashSet from C:\Program Files\Java\jdk1.
No comments:
Post a Comment