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

  • SB-Messaging and service bus DLL within BTS seems not compatible with Cloud

    I am trying to retreive a message from a Queue in azure service bus. The receive location gets disabled after 5 seconds of enabling it. The error message is : The receive location "rlFromFireQueue" with URL "sb://muazure.servicebus.windows.net/fireal

  • Content area portlet empty

    Hi, I've set the page assigned to some content area as the homepage for public users. In this way, when a user enters the site or when he/she logouts, Portal shows that page. The problem is that the portlet corresponding to the content area page show

  • After following all help directions still getting synch error

    Email, account & syncing not recognized. Any time I want to sync it encounters an error. I follow instructions on how to delete files, change password but when entering the right info it gives me the error again. I've been researching and fixing this

  • Transformation - Rotate only moves path, not selected pixels.

    Hi All, I must be missing some simple click somewhere.... Just starting out with the Pen tool, paths and converting into a selection. Trying to transform a converted selection pixels made from a path. Current layer is visible and selected. Current pa

  • FINISH DATE VARIANCE AS OF DATA DATE

    Hello to Everybody, I would like present a tabular report with a column for "Finish Date Variance as of Data Date".... I would appreciate much for your immediate reply. Thanks and Regards, Raymond