How can you retrieve what OS your running in Java

I am trying to write some logic based on the OS I am on. Is there a way Java enables you to find our what OS you are running. Some kind of method?
Thanks

Check out the class java.lang.System and look at the javadoc for its method getProperties().
Properties sysProps = System.getProperties();
Enumeration sysPropsKeys = sysProps.propertyNames();
while (sysPropsKeys.hasMoreElements())
String key = (String) sysPropsKeys.nextElement();
System.out.println(key + ": " + (String) sysProps.getProperty(key));

Similar Messages

  • HEY, HOW CAN YOU TELL WHAT GEN YOUR ITOUCH IS?

    How can you tell what gen your itouch is?

    Check the link below.
    http://support.apple.com/kb/HT1353
    Stedman

  • How can you tell what year your mac is?

    i bought a mac a few months ago, i did a look up on my serial number and it says that it is from august of 2007. i want to make sure what they are telling me is not pulling my leg. any suggestions?

    Apple Menu > About This Mac > More Info.
    Report the model number:

  • How do you know what generation your Apple TV is?

    How can you tell what generation your Apple TV is and what the version IOS it is running? Thanks for any help!

    In the link provided, there is a section which tells which model you have; e.g.
    Apple TV (3rd generation)
    Year introduced: Early 2012
    Color: Black
    Model number on bottom:
    A1427 for Apple TV (3rd generation)
    A1469 for Apple TV (3rd generation) Rev A
    The A1427 or A1469 is printed on the bottom of the apple tv with very fine print, i had to use a flashlight to see my model number.

  • HT1911 how can you retrieve your passcode for your ipod if you have forgotten it?

    how can you retrieve your passcode for your ipod touch if you have forgotten it and it became disabled?

    You cannot retrieve it.
    You can do as the manual tells you to do and restore the ipod.
    If you are unable to restore, then type "unable to restore" into the search bar at the top of this page by Support and read the resulting help articles.

  • How do you see what bitrate your music is on the latest iTunes?

    How do you see what bitrate your music is on the latest iTunes?

    select
    Music
    Above the first song there are colums you can customize  ,  select bitrate from that menu
    tap two fingers on the trackpad will open up the menu to customize after moving the pointer to that field

  • How can you tell what pictures from iPhoto you already used in iMovie?

    how can you tell what pictures from iPhoto you already used in iMovie?

    Log into your account on a computer (iTunes>Store>View Account) and go to Purchase History

  • I just got an IPAD2 on Saturday.  With the Mac, I could always tell when programs were open/running by going to the menu bar.  How can I tell what programs are running in the background.  I am struggling with not being able to go to a menu bar at the top

    I just got an IPAD2 on Saturday.  With the Mac, I could always tell when programs were open/running by going to the menu bar.  How can I tell what programs are running in the background.  I am struggling with not being able to go to a menu bar at the top

    You can see which apps are open and/or recently used by double-clicking the home button to bring up the taskbar at the bottom of the screen (not all apps that appear there are active) - you can then close apps on it by pressing and holding one of them for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar. If you have an app 'open' on-screen then it won't appear on the taskbar, you will need to go back to the homescreen first, and it should then show when you next open the taskbar.
    If you haven't already got a copy then you can download the iPad manual from here : http://support.apple.com/manuals/#ipad

  • How can you get pics from your Camera roll to you photo stream

    How can you get pics from your Camera roll to you photo stream

    iCloud: Photo Stream FAQ
    iCloud: Photo Stream
    iCloud: Set up Photo Stream

  • Since the iPod Lightning connection is not supported, how can you take videos from your iPod 5th Gen to your tv?

    Since the iPod Lightning connection is not supported, how can you take videos from your iPod 5th Gen to your tv?

    Lightning TV out
    - Via Airplay to an Apple TV.
    or one of these cables.
    - http://store.apple.com/us/product/MD826ZM/A/lightning-digital-av-adapter?fnode=3 a
    - http://store.apple.com/us/product/MD825ZM/A/lightning-to-vga-adapter?fnode=3a

  • How can you find out if your mac is infected with the flash back virus

    how can you find out if your mac is infected with the flash back virus?

    F-Secure's Flashback removal tool - http://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_k.shtml - supposedly also works on OSX 10.5 and earlier.
    05 Apr 2012 How to Detect and Protect Against Updated Flashback Malware - http://tidbits.com/article/12918 - detection methods for multiple browsers and general information
    Leopard and earlier users see recommendations at: https://discussions.apple.com/thread/3872491

  • How can you tell what generation apple tv you have?

    How can you tell what generation apple tv you have?

    Apple TV 1. gen: http://www.apple.com/de/support/appletv/1st_generation/
    Apple TV 2. gen: http://www.apple.com/de/support/appletv/

  • How can you tell what type of Iphone I have from the model number or serial number from the settings menu

    how can you tell what type of Iphone I have from the model number or serial number from the settings menu?

    Type Serial Number from Settings App here https://selfsolve.apple.com/agreementWarrantyDynamic.do it will tell you the type of iPhone.

  • How can you see what the WLC ACL is denying?

    How can you see what the acl on our WLC5508 is denying? The counter keeps on going up but what is getting blocked is nowhere to be seen.

    You are right but you can monitor that through the hits counts on the (WLC)Security->Access crontrol list === Hits
    It will give you some idea for trouble shooting also you have the cmd line for details analysis.

  • How can you view what your cropping on FCE at the same time as cropping....

    I need to crop a clip however don't know how to work the 'sliders'. How can i preview what i am cropping as i am doing it?
    Many thanks,
    Ed

    Put the clip into the timeline. Put the playhead over the clip. Double click the clip in the timeline. In the Motion tab adjust the sliders. Or use the Crop tool in the Canvas with the View popup set to Image+Wireframe.

Maybe you are looking for

  • Mass Creation of Purchasing Info Records

    Hi all, we want to change the vendor for a certain amount of articles (old vendor e.g. 102, new vendor e.g. 768). To order the articles (maybe approx. 1000) by the new vendor, we need to create new Purchasing Info Record (for vendor 768) for every ar

  • How to limit the number of version of a content item in UCM?

    Hi, I am looking for a solution to limit the number of versions which can be created for a content item. It should be configurable as in future if I need to increase or decrease, it should be possible. I have seen the solution given in Re: Limiting n

  • New to Logic Pro Need Help

    I have had fun fooling around with loops and building songs that way, but I have yet to figure out how to get a guitar input set up. I am using the Apogee interface. I know about setting up the audio in preferences, but after that I am lost. Can anyo

  • User exit for migo

    <b>pls help me out regarding this.....</b>Zxx has fields x,y ,z   apply  condition with these fields and raise the pop up of  zabtransc Migo transaction. i used exit_saplie01_007 it is working Zabtransac has fields x,y,z If any of these details in th

  • Unable to send private messages

    I have tried from my home computer and 2 office computers. Is anyone else having issues sending messages? Just gives me error done. Never put off until tomorrow what you can do today! Solved! Go to Solution.