Problem using command line argument
I am debugging an application that woud normaily use the following command line to start:
java -cp %CLASSPATH% -DLocalConfig=c:\local.cfg -DSC=true -DChannelTrace=true package.StartClass
This causes the application to run fine. There is a jar archive file that uses the -DLocaConfig option and it works when using the Java keyword. However, I have a problem and I need to debug the application. So I set the following as a runtime argument under the project properties:
-DLocalConfig=c:\local.cfg
When I step through with the IDE it looks like this is ignored. If I run from the IDE this ignored. By ignored, I mean setting -DLocalConfig as a runtime argument doesn't seem to propagate to the jar as it does when running the app using the Java command.
I have two questions I'm hoping someone will answer...
(1) Should that be a runtime argument? It is more a system property and is not accessed through the args array of the main method.
(2) If it's not a runtime argument, where should I place the -DLocalConfig option?

