I want to add a class path through a command line call. The call is as follows:
java -cp ..\conf -jar ..\lib\switcher.jar
The conf directory contains an XML file that defines the application context and the log4j.properties file. But when I run this command, Java obviously cannot find these two files, although I added them to the class path.
I also tried to specify the absolute path of the conf directory, but it didn't work either.
Any clues?
user321068
source share