On Fri, Oct 12, 2001 at 05:08:12PM +0200, Raphael Mack wrote:
> Hello again,
>
> is there a way to read the system-environmentvariables with JAVA?
If you mean the Unix/Linux environment - not without making JNI calls.
If you can make JNI calls, the "getenv()" call will retrieve individual
values
> "Nelson" == Nelson Minar <[EMAIL PROTECTED]> writes:
Nelson> I am still not sure if this is comprehensive. If someone
Nelson> with access to the Blackdown sources would be so kind as
Nelson> to grep through them for calls to getenv(), that would
Nelson> help a lot.
What abo
Hi,
> Generic JDK variables, Java 1.1 and Java 1.2:
..
> JAVA_COMPILER If set to "tya", then "libtya.so" will be used as
> a JIT compiler if it is installed correctly. If
> set to "none", no JIT will be used.
IMHO should one use a _case_ _sensitive
Nathan Meyers wrote:
>
> A little bit of shell or perl (or name-your-favorite-command-interpreter)
> programming could give you a script that would construct a Java
> command-line containing all of the environment variables as "-D..."
> options. I've attached a perl script that'll send a Java com
Paul Reavis wrote:
> So I tried to access an environment variable for the first time today;
> no soap. Since System.getenv() is deprecated, I used
> System.getProperty(). I couldn't get it to fetch my variable with what I
> thought was the correct way:
>
> bash$ export foo=bar
> bash$ java myapp
Paul Reavis <[EMAIL PROTECTED]> writes:
> So I tried to access an environment variable for the first time today;
> no soap. Since System.getenv() is deprecated, I used
> System.getProperty(). I couldn't get it to fetch my variable with what I
> thought was the correct way:
>
> bash$ export foo=b
Vincent Trussart wrote:
>
> System properties != environment variables...
Blurgle... oh well, I guess environment variables are too nonportable
or something. Well, time to put in a real syntax for command-line
switches for the thing- -DBLAH=GRALP is not something I want to type all
the time.
--
Paul Reavis wrote:
> So I tried to access an environment variable for the first time today;
> no soap. Since System.getenv() is deprecated, I used
> System.getProperty(). I couldn't get it to fetch my variable with what I
> thought was the correct way:
>
> bash$ export foo=bar
> bash$ java myapp
Paul Revis wrote:
>no soap. Since System.getenv() is deprecated, I used
>System.getProperty(). I couldn't get it to fetch my variable with what
I
>thought was the correct way:
Check out the documentation for java.util.Properties. Basically,
Properties have no relationship to environment variabl