Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Determining on which system is program running

Reply
Thread Tools

Determining on which system is program running

 
 
DeoXMAN
Guest
Posts: n/a
 
      04-28-2007
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?

 
Reply With Quote
 
 
 
 
Daniel Dyer
Guest
Posts: n/a
 
      04-28-2007
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
 
Reply With Quote
 
 
 
 
Daniel Pitts
Guest
Posts: n/a
 
      04-28-2007
On Apr 28, 4:24 pm, DeoXMAN <DeoX...@gmail.com> 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()

 
Reply With Quote
 
DeoXMAN
Guest
Posts: n/a
 
      04-29-2007
On Apr 29, 1:27 am, Daniel Pitts <googlegrou...@coloraura.com> wrote:
> On Apr 28, 4:24 pm, DeoXMAN <DeoX...@gmail.com> 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!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining whether the running ruby is outdated? Lars Olsson Ruby 13 08-16-2010 05:18 PM
Determining which versions of java a program will run on? travel2light Java 10 03-10-2008 09:04 AM
Determining the directory a script is running in Kev Jackson Ruby 3 11-17-2005 08:29 AM
determining which object trigger postback on page_load darrel ASP .Net 3 08-11-2004 01:00 AM
determining when an applet is running via javascript David Haga Javascript 2 11-21-2003 03:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57