For example:
java -Dcom.siebel.management.jmxapi.cfgFileName=C:\monitor\1srvr.xml Component
Where (in Eclipse) do I configure the -D flag with the name and the value?
Component
is a class file.
When I run my code in Eclipse, I get the following exception:
SEVERE: Configuration file name must be specified in com.siebel.management.jmxapi.cfgFileName system property
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.siebel.management.jmxapi.JmxComponent.getState(JmxComponent.java:169)
at Component.main(Component.java:21)
Caused by: java.lang.IllegalArgumentException: Configuration file name must be specified in com.siebel.management.jmxapi.cfgFileName system property
at com.siebel.management.jmxapi.SiebelAgentUtil.<init>(SiebelAgentUtil.java:78)
at com.siebel.management.jmxapi.SiebelAgentUtil.<clinit>(SiebelAgentUtil.java:43)
... 2 more