I want to execute the java executable (Open JDK 11.0.2) on Windows from command line and I am not sure if I specify the class path option correctly, eg
java -cp "./foo_\*/*" -version
How can I print a list of all files that can be found by java on the given class path?
Is there something like
echo java -cp "./foo_\*/*"
or
java -debug -cp "./foo_\*/*" -version
Just simply add -verbose:class
See article here: https://dzone.com/articles/how-use-verbose-options-java there are also other options/flag to better debug it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.