Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27988 > unrolled thread
| Started by | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| First post | 2014-04-08 18:12 -0700 |
| Last post | 2014-04-08 23:39 -0700 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.java.programmer
setting system propertes Roedy Green <see_website@mindprod.com.invalid> - 2014-04-08 18:12 -0700
Re: setting system propertes Arne Vajhøj <arne@vajhoej.dk> - 2014-04-08 21:32 -0400
Re: setting system propertes markspace <markspace@nospam.nospam> - 2014-04-08 19:59 -0700
Re: setting system propertes Roedy Green <see_website@mindprod.com.invalid> - 2014-04-08 23:39 -0700
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2014-04-08 18:12 -0700 |
| Subject | setting system propertes |
| Message-ID | <vd79k99augsjug4r5qnngdhqqkjs4t8f74@4ax.com> |
You can set system properties on the command line with java.exe -Dflavour=strawberry -jar x.jar parm1 You can set them in signed JNLP files. Is there any other way to set them, say with SETs, or with x.jar parm1 or by reading them from a *.properties file. -- Roedy Green Canadian Mind Products http://mindprod.com "Don't worry about people stealing an idea; if it's original, you'll have to shove it down their throats." ~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)
[toc] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2014-04-08 21:32 -0400 |
| Message-ID | <5344a32d$0$305$14726298@news.sunsite.dk> |
| In reply to | #27988 |
On 4/8/2014 9:12 PM, Roedy Green wrote: > You can set system properties on the command line with > java.exe -Dflavour=strawberry -jar x.jar parm1 > > You can set them in signed JNLP files. > > Is there any other way to set them, say with SETs, or with > > x.jar parm1 > > or by reading them from a *.properties file. Are you asking if you can read data from a properties file and use that data to call System.setProperty? Arne
[toc] | [prev] | [next] | [standalone]
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2014-04-08 19:59 -0700 |
| Message-ID | <li2d1q$kq0$1@dont-email.me> |
| In reply to | #27989 |
On 4/8/2014 6:32 PM, Arne Vajhøj wrote: > > Are you asking if you can read data from a properties file > and use that data to call System.setProperty? You have to be careful of this though, because some parts of the system (notably the logger in my experience) can initialize before even your main() entry point is called. (And the logger does look at system properties to initialize.) Sometimes System.setProperty() will work for ya, and sometime it won't. But yeah generally this is an RTFM type question. I think however Roedy might be asking for his web site, to make sure he hasn't missed any details or standard practice. I think it might be better if he stated his goal, though, since his OP makes it sound like he's just looking for one answer. P.S. I don't know any other techniques other than what's been mentioned so far.
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2014-04-08 23:39 -0700 |
| Message-ID | <gmq9k953e8kd795cp090du9b3km132dtsc@4ax.com> |
| In reply to | #27990 |
On Tue, 08 Apr 2014 19:59:02 -0700, markspace <markspace@nospam.nospam> wrote, quoted or indirectly quoted someone who said : >I think however Roedy might be asking for his web site, to make sure he >hasn't missed any details or standard practice. I think it might be >better if he stated his goal, though, since his OP makes it sound like >he's just looking for one answer. You are exactly right. I am tidying up the entry at http://mindprod.com/jgloss/properties.html I wanted to enumerate all the ways of setting system properties. -- Roedy Green Canadian Mind Products http://mindprod.com "Don't worry about people stealing an idea; if it's original, you'll have to shove it down their throats." ~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web