Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #3299 > unrolled thread
| Started by | khushankkashyap9@gmail.com |
|---|---|
| First post | 2015-04-21 00:52 -0700 |
| Last post | 2015-04-21 12:12 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.help
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Where are Java System Properties stored? khushankkashyap9@gmail.com - 2015-04-21 00:52 -0700
Re: Where are Java System Properties stored? Joerg Meier <joergmmeier@arcor.de> - 2015-04-21 12:12 +0200
| From | khushankkashyap9@gmail.com |
|---|---|
| Date | 2015-04-21 00:52 -0700 |
| Subject | Re: Where are Java System Properties stored? |
| Message-ID | <d93b7dfe-6203-4124-bb1b-ecea77a7ae9e@googlegroups.com> |
On Wednesday, May 21, 2003 at 8:45:50 AM UTC+5:30, Roedy Green wrote:
> On Tue, 20 May 2003 10:50:41 -0400, "Jiong Tang"
> <jiongt@nortelnetworks.com> wrote or quoted :
>
> >It gives me a quite long list. But I am wondering where do they come from?
> >Are they stored somewhere in a file and etc?
>
> They are not stored. They are generated by a native method.
>
> --
> Canadian Mind Products, Roedy Green.
> Coaching, problem solving, economical contract programming.
> See http://mindprod.com/iraq.html for links about the Iraq war.
Hi,
For the above query i wanted to know whether i can access the system property explicitly through following code:
Properties p = System.getProperties();
p.put("check_value", "true");
System.setProperties(p);
now the property is returning null when i access it in different process/application with
System.getProperty("check_value").
is there any way by which we can set the system property which is accessible to all the processes
[toc] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2015-04-21 12:12 +0200 |
| Message-ID | <bqk5gi5ujmn3.vkxsgy5lcog9.dlg@40tude.net> |
| In reply to | #3299 |
On Tue, 21 Apr 2015 00:52:37 -0700 (PDT), khushankkashyap9@gmail.com wrote:
> For the above query i wanted to know whether i can access the system property explicitly through following code:
> Properties p = System.getProperties();
> p.put("check_value", "true");
> System.setProperties(p);
> now the property is returning null when i access it in different process/application with
> System.getProperty("check_value").
> is there any way by which we can set the system property which is accessible to all the processes
That is not possible in Java. Your only solution as far as I know is to
call an external program, such as the system shell, and use that to set
environment variables. Java only holds a copy of the properties, so no
matter what tricks you try, you will not be able to affect the outside
world.
Liebe Gruesse,
Joerg
--
Ich lese meine Emails nicht, replies to Email bleiben also leider
ungelesen.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.help
csiph-web