Java is platform independent, but some task are platform dependent
(for example shuttind down, as discussed in messages before). So is
there a way to know on which platform program is runinng? whether it
is windows, linux, or mac?
Daniel Dyer - 29 Apr 2007 00:27 GMT
> Java is platform independent, but some task are platform dependent
> (for example shuttind down, as discussed in messages before). So is
> there a way to know on which platform program is runinng? whether it
> is windows, linux, or mac?
<http://java.sun.com/javase/6/docs/api/java/lang/System.html#getProperties()>
Dan.

Signature
Daniel Dyer
https://watchmaker.dev.java.net - Evolutionary Algorithm Framework for Java
Daniel Pitts - 29 Apr 2007 00:27 GMT
> Java is platform independent, but some task are platform dependent
> (for example shuttind down, as discussed in messages before). So is
> there a way to know on which platform program is runinng? whether it
> is windows, linux, or mac?
System.getProperties()
DeoXMAN - 29 Apr 2007 12:56 GMT
> > Java is platform independent, but some task are platform dependent
> > (for example shuttind down, as discussed in messages before). So is
> > there a way to know on which platform program is runinng? whether it
> > is windows, linux, or mac?
>
> System.getProperties()
thanks!