简体   繁体   中英

How to debug classpath command line option (-cp) for java executable?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM