简体   繁体   中英

Jar before jre - java classpath

is there a way to run java and tell it to use a certain jar higher in the classpath than the jre?

I know it is possible in eclipse run configuration, but I want it to work using java from command line.

The reason is that there is a class that is loaded from the jre and I wanted a different version that should have been loaded from an external jar. I saw this was the case using -verbose.

Thank you

试试这个Java arg

-Xbootclasspath/p:my.jar

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