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 variables, although they
are similar in concept.
Properties may be loaded from a file by the load(InputStream) method,
and the System properties may be replaced in an application (not an
applet) by the System.setProperties(Properties) method. The file would
look like:
name=value
where the value may contain spaces and is terminated by the new line.
There are various tricks you can do to put in comments and escape
characters, see the code for the load(InputStream) method for that.
Hope this helps.
Paul Gassoway