Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to determine the running OS?

807601Jun 4 2008 — edited Jun 4 2008
Well, I already posted this question some days ago but I went away.
I will ask it in a different way since somebody misunderstood it.

Is it possible to implement the following method?
/** Returns true if and only if tis JVM is running on a MS Windows XP system.
 */
public boolean isWindowsXP();
Of course the same question applies to any other OS like Solaris, Linux, etc.


Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2008
Added on Jun 4 2008
34 comments
155 views