Forums Register Login

Can programatically add property to System properties

+Pie Number of slices to send: Send
Hi,
Is it possible to programmatically add a property to the System(class) properties - I know I can add some on the command line with -Dname=value but I am wondering if I can do it inside the application. I have already used System.setProperty but that seems to be only for updating already existing properties.
Many Thanks
+Pie Number of slices to send: Send
After further testing - it is possible with the setProperty method.
So I answered my own question.
:roll:
+Pie Number of slices to send: Send
So I answered my own question.
Glad we could help Herbert.
permaculture is giving a gift to your future self. After reading this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 701 times.
Similar Threads
log4j in Tomcat and Glassfish
Hibernate SQL
Properties
Adding new property
Changing java system properties permanently
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:58:10.