Determining on which system is program running

Discussion in 'Java' started by DeoXMAN, Apr 29, 2007.

  1. DeoXMAN

    DeoXMAN Guest

    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?
     
    DeoXMAN, Apr 29, 2007
    #1
    1. Advertising

  2. DeoXMAN

    Daniel Dyer Guest

    On Sun, 29 Apr 2007 00:24:12 +0100, DeoXMAN <> wrote:

    > 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.

    --
    Daniel Dyer
    https://watchmaker.dev.java.net - Evolutionary Algorithm Framework for Java
     
    Daniel Dyer, Apr 29, 2007
    #2
    1. Advertising

  3. DeoXMAN

    Daniel Pitts Guest

    On Apr 28, 4:24 pm, DeoXMAN <> wrote:
    > 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()
     
    Daniel Pitts, Apr 29, 2007
    #3
  4. DeoXMAN

    DeoXMAN Guest

    On Apr 29, 1:27 am, Daniel Pitts <> wrote:
    > On Apr 28, 4:24 pm, DeoXMAN <> wrote:
    >
    > > 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!
     
    DeoXMAN, Apr 29, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. darrel
    Replies:
    3
    Views:
    690
    Scott Allen
    Aug 11, 2004
  2. Jon Maz
    Replies:
    1
    Views:
    400
    Joerg Jooss
    Jan 21, 2005
  3. Keith Patrick

    Determining which Button was pressed

    Keith Patrick, Feb 22, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    3,402
    Keith Patrick
    Feb 22, 2005
  4. Nathan Sokalski
    Replies:
    4
    Views:
    4,173
    Nathan Sokalski
    Mar 11, 2006
  5. travel2light
    Replies:
    10
    Views:
    484
    Andrew Thompson
    Mar 10, 2008
Loading...

Share This Page