I want to run my java code with below arguments in eclipse.
java -cp "../../" -Djavax.net.ssl.trustStore=peer01KeyStore.jks MainCmd -v -p 0 -c config.peer01.properties
So, I clicked "run->run configuration->Java Application->Arguments" and I inputed the long arguments without the first "java" (-cp "../../" -Djavax.net.ssl.trustStore=peer01KeyStore.jks MainCmd -v -p 0 -c config.peer01.properties) in "Program arguments". But it doesn't work.
The arguments meaning is as follows and I'm not sure them exactly.
- -cp "../../" : class path
- -Djavax.net.ssl.trustStore=peer01KeyStore.jks : arguments for OpenSSL
- MainCmd -v -p 0 -c : main class(MainCmd) with options
- config.peer01.properties : configuration file (input file)
I hope how to set the arguments in detail. Thanks in advance.




-cpwould be VM argument (but better use the Classpath tab), the trust store as well. The rest would be progam arguments but should probably be passed in individual lines. Refer to the eclipse help for details.MainCmdon the other hand is not an argument and would be set in the Main tab.