system property not accessed by third-party application

C

crash.test.dummy

hi,
i have an application (packaged in a jar) that uses a system
property:

java -jar -Druntime.environment=TEST MyApp.jar

no problem accessing the runtime.environment property within the
MyApp application.

this application uses a third-party application (alias TPA, packaged
also in a jar) that uses the same runtime.environment property.
however, when the TPA accesses this property, the value is null.

if i run this TPA independently, specifying the property, it works
fine:

java -jar -Druntime.environment=TEST lib\ThirdPartyApp.jar

any ideas on what i may be doing wrong?
thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top