On Sat, 15 May 2004 07:57:51 GMT, Liz wrote:
> "Andrew Thompson" <> wrote in message
>> On Fri, 14 May 2004 15:10:59 GMT, wrote:
...
>>> System.getProperty( "os.name" )
...
>> Why does your app. need to know?
>>
> I had one application that looked at this value so
> I could print out a message that the program was or
> was not tested on that OS.
Good point. BrowserLauncher uses it as well..
<http://www.physci.org/codes/display.jsp?fl=/edu/stanford/ejalbert/BrowserLauncher.java#202>
There are certainly valid uses for it, but consider..
<untested snippet>
if (s.equals("Mac OS")) {
eol = "\n";
} else if.. {
...
} else { // windows!!
eol = "\n\r";
}
</untested snippet>
...as yet, we do not know why the
OP needs the information, and most
of the reasons for wanting it,
are bad ones.
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology