0

I have to set a custom system property that is to be used in my application code that runs in tomcat.

Need help for the same.

OS: Linux variant

I tried setting the same with export JAVA_OPTS="-D<prop>=value".

But value is not seen in java -XshowSettings:properties -version

This property needs to be picked up by System.getProperty("prop"); in the application code.

pvpkiran
  • 25,582
  • 8
  • 87
  • 134
mehere
  • 1,487
  • 5
  • 28
  • 50

0 Answers0