I want to place ABC.properties
file in a directory in the classpath ahead of cmbview81.jar
.
cmbview81.jar
already has ABC.properties
file in it. I extracted the file made some changes and made new ABC.properties
file and now want to set its path ahead of cmbview81.j
ar file so that application will not point to the file which is in cmbview81.jar
file.It should use new ABC.properties
file.
I tried solutions provided here How to place a file on classpath in eclipse? but didn't work.
Put it in a separate Jar file and see to it that this Jar file is included in front of the existing Jar file in the classpath specification. The order of specification of the Jar files in the classpath is significant (it's the same idea as directly using the CLASSPATH variable).
You could also put it in your src
somewhere, but just make sure then that your src
folder occurs before the Jar files in the Order and Export tab of the Eclipse Java build path configuration.
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.