Urgent: need to know osName

String osName = System.getProperty("os.name" );
I want to know what are the various availble osName
e.g Windows XP
Windows 95
what are the others? can tell me with case sensitive

To detect Windows version correctly and reliably without knowing exactly all the possible values,
simply do this:
String osName = System.getProperty("os.name" ).toLowerCase();
if (osName.indexOf ("windows") != -1)
if (osName.indexOf ("95") != -1)
System.out.println ("Windows 95");
else if (osName.indexOf ("98") != -1)
System.out.println ("Windows 98");
else if (osName.indexOf ("me") != -1)
System.out.println ("Windows ME");
else if (osName.indexOf ("2000") != -1)
System.out.println ("Windows 2000");
else if (osName.indexOf ("xp") != -1)
System.out.println ("Windows XP");
Although I'm pretty sure the windows naming goes Windows 95, Windows 98, Windows ME, Windows 2000, Windows XP (I know XP and 2000 are like that for sure). As for linux, never used it, but I imagine that it would contain the word linux in it.

Similar Messages

  • I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I tightened all HD screws and it didn't help. With the machine running and side of the case off, I physically stopped both the video card fan and the front case fan with my finger for a couple seconds and the noise continued. I also took all hard drives out one by one and rebooted each time. Again, the noise continued until I took out the Mac HD in Bay 1, rebooted, and I had a very quiet, silent machine. The issue is the hard drive in bay 1 that shipped with the computer, it's without a doubt causing the hum/woosh sound. I still need to know if I can safely swap the Mac HD from bay 1 to bay 4 without any issues to the operating system. I would like to try that to see if it dampens the noise but I also want to make sure this swap won't screw up my machine at all.

  • Urgent - Need to know that the changed roles are saved in which request ?

    Hi *,
    I was required to include a query in a specified role. I went to T-code PFCG, gave the role name and went into the changed mode. Then in the authorization data, I assigned the query. After that I saved and clicked on Generate button.
    Now, I want to know these changes are captured in which request ?
    Please guide me the possible ways so that I can assign points for the useful answers.
    Regards,
    Srinivas

    Dear Srinivas D Rao  ,
    Once the changes are done ,it will be captured in IDOC and you go to bd87 transaction and give message type and press execute...
    Check in su53 Authorization check transaction
    Also
    To see Authorization a User has through
    transaction suim.
    --> users by complex selection criteria
    >by authorization values
    > Enter authorization object "F_BKPF_BUK "
    >press enter and enter company code
    execute ... you will find the users
    You need to find roles assigned to the user first then go to table agr_1252 anf give the value $BUKRS along with the role names.
    Also check tables UST12 and AGR_1251.
    Hope it helps
    Regards
    Bala

  • Urgent: Need to know a Program name which generates Numbers automatically

    Hi Peers,
    We all know that there are 2 kinds of Numbering :
    1. Internal Numbering
    2. External Numbering
    For eg: When we create an Sales Order a  new SO number is generated automatically which is called Internal number generation.
    There is an Object which generates this number  I would like to know that  Program. If  any Idea please let me know.
    The reason why I need is , Thru a transaction when we  are create entries for an Z table , the number should be generated automatically.
    Points will be suitably rewarded.
    Thanks a Lot.
    Daniel

    Hi,
    1) Goto Tcode SNRO
    2) select ur concerned OBJECT there.
    3) Click on Number Ranges Push Button.
    4) then click on Display Interval Button over there.
    *****************************************************Other code
    Create number range object using OYSN.
    Then call the following function modules.
    FORM get_next_id CHANGING p_discrep.
    DATA: last_id LIKE zrecaudit-discrep,
    quant LIKE inri-quantity, "dummy
    code LIKE inri-returncode. "returncode
    CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
    EXPORTING
    object = 'ZRECAUDIT'
    EXCEPTIONS
    foreign_lock = 1
    object_not_found = 2
    system_failure = 3
    OTHERS = 4.
    IF sy-subrc = 0.
    CALL FUNCTION 'NUMBER_GET_NEXT'
    EXPORTING
    nr_range_nr = '01'
    object = 'ZRECAUDIT'
    IMPORTING
    number = last_id
    quantity = quant
    returncode = code
    EXCEPTIONS
    interval_not_found = 1
    number_range_not_intern = 2
    object_not_found = 3
    quantity_is_0 = 4
    quantity_is_not_1 = 5
    interval_overflow = 6
    buffer_overflow = 7
    OTHERS = 8.
    CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
    EXPORTING
    object = 'ZRECAUDIT'
    EXCEPTIONS
    object_not_found = 1
    OTHERS = 2.
    ENDIF.
    ENDFORM. " get_next_id
    Don't forget to reward if useful..
    Vasanth

  • HELP urgently needed: My Sandberg FireWire for Laptop will not start on my T60

    Let me start with information on my T60:
    OS information: Microsoft Windows XP
    OS version: 5.10.2600   Service Pack 2
    Processor: x86 Family 6 Model 14 Stepping 8
    Memory: 3.135.856 kb
    BIOS version: 2.09  (79ETC9WW)
    Machine type-Model: 1951A47
    I have just got a new Sandberg FireWire for Laptop, a PC Card with 3 6-pins connectiont. After inserting the card in the PC Card slot, the Windows Device Manager tells me that there are problems with the card. Looking at the 1394 Card Properties the status says:
    "This device cannot start. (Code 10) - Click Troubleshoot to start the troubleshooter for this device."
    The troubleshooter did not solve my problem. I have tried disconnecting, re-connection, shut down Windows and start again etc.
    At Sandberg Help Desk they tell me that I have two slots in my laptop, one with a 16 bits bus and another with a 32 bits slots, and I should use the latter. It seems that I can use the lower slide only in my laptop and I cannot push the card into the upper slide. There is not enough room for it.
    Here is what I found on Lenovo's support site on my type & model:
     PC Card
    Conforms to the PC Card Standard 95
    Type II slot
    Both the 16-bit Release 2.1 card standard and the 32-bit CardBus card are supported.
    Have a look at these screen captures.
    What should I do to solve my urgent problem!? 
    Message Edited by pbl_ibm on 10-09-2008 05:10 AM
    Message Edited by pbl_ibm on 10-09-2008 07:27 AM
    Message Edited by pbl_ibm on 10-09-2008 07:45 AM
    Message Edited by pbl_ibm on 10-09-2008 07:45 AM

    garytr23 wrote:
    Sounds to me like a driver configuration problem.  Maybe something bad happened during driver install.  I would recommend uninstalling the device from device manager by right clicking on it and hitting uninstall.  Reboot the computer.  Have a go at it again.  Also, test your pcmcia port functionality by finding and plugging in a different card.  See if that works.  It might need repair.
    Message Edited by garytr23 on 10-09-2008 09:41 AM
    The status right now is:
    The PC Card reader works on my T60
    If I use a Firewire PC Card it will not start - as described above (on T60)
    The PC Card work properly on my T61P - and I succeeded importing a video file from a digital camera using the Fireswire PC Card.
    So what does a wise man do in this situation??
    Please help me as I urgently need to know how to solve this serious issue!! 
    Have you got an idea? Can I import the video in another way??
    Message Edited by perbuch on 10-12-2008 07:55 AM

  • Need to know schema name and table name associated with a column-URGENT

    Hi folks,
    I need to know the schema name and the table name associated with a column. Though jdbc has the api to getTableName and getSchemaName, some database vendor like oracle does return empty upon call of mentioned methods. I found that oracle driver does not support that ……
    Can any one give me the solution? It is urgent. Or do you suggest any third pary jdbc driver which can provide those?
    Thanks
    Angelina

    Angelina,
    Your question has been discussed several times previously in this forum. Search this forum's archives for "getTableName". Oracle JDBC driver does not implement this (because "it is not feasible" -- according to Oracle).
    First of all, I would suggest that you could probably change your application's logic so that you would not need this functionality (but I guess that is not feasible either, right :-)
    Alternatively, you could try querying the Oracle database data dictionary.
    Good Luck,
    Avi.

  • I try to go to itunes to see how much I  m spent on itunes and app store and I can not and tries several times! I was told that they charged me wrong and I will return the money as they will do in what way? I need to know how much I have spent urgent plea

    I try to go to itunes to see how much I  m spent on itunes and app store and I can not and tries several times! I was told that they charged me wrong and I will return the money as they will do in what way? I need to know how much I have spent urgent plea

    You can sign into the iTune Store and check your Purchase History.
    http://support.apple.com/kb/ht2727

  • Urgent: I just bought 3 anual pre paid memberships for adobe creative cloud, I need to know how to install each membership in one different computers.

    I just bought 3 anual pre paid memberships for adobe creative cloud, I need to know how to install each membership in one different computers.

    VivianSchumann, I have replied to your query in Urgent: I just bought 3 anual pre paid memberships for adobe creative cloud, with the same Adobe ID.
    Regards
    Rajshree

  • Need to know xml flow cross references, Its Very Urgent Help me

    need to know xml cross references coding and sample files for indesign cs3

    As far as I know, cross references are available in CS4/5, not in CS3. It is possible to write a script that creates hundreds, thousands of them very quickly taking the necessary information, let's say from tagged text. You wrote only one line, so it's difficult to me to imagine what XML structure you have and what your requirements are. But here is a script I wrote a while ago -- probably you need something similar, and here's the source code (not final version, of course) to show the approach I used.
    Kasyan

  • Urgent. Need to know about user exits.

    Hello Everyone,
    I am new to this forum. I need to know about user exits.
    My next project requires me to implement user exits, screen exits, etc.
    I am a rookie to this topic.
    Can anyone help me as to how to start with his topic.
    Any sort of help is appreciated.
    Cheers,
    Neelam.

    Hi Neelam,
    Welcome to sdn.
    This is a very frequently asked topic.
    Please use teh search forum option for this type of queries.
    http://help.sap.com/saphelp_47x200/helpdata/en/c8/19763443b111d1896f0000e8322d00/frameset.htm
    Regards,
    Ravi

  • URGENT! need to know how to...

    make a program that makes a password such as 9631 to ulnock a small text file. everything must be notated. greatly aprecciated.

    pwngrammer wrote:
    i am new to programming i can put text on screen etc but i need help on methods and for loops and such thats why i need to know how to create a method or series of method to create a password. Everything you ever wanted to know about for statements:
    [http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html]
    Everything you ever wanted to know about creating methods:
    [http://java.sun.com/docs/books/tutorial/java/javaOO/methods.html]
    pwngrammer wrote:
    and then create another method that allows me to type the password onto the screen which will unlock a text file. ...Everything you ever wanted to know about getting user input:
    [http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html] (see the System.in part)
    Feel free to post back with a specific question (hint: a specific question is not: "can you post example code?").

  • Macbook pro connects to wifi via safari but IE has connection problems. Has always been fine but recently stopped working. Urgently need to sort it out. Please help.

    I have been running Rushcliff Private Practice Software (PPS) in a Windows environment using Parallels on a macbook pro for months. Everything has been working well. PPS needs an internet connection to allow synchronisation with colleagues using the same software.
    Over the last 2 weeks, I keep losing the IE connection but am still able to connect to Wifi using Safari and other PCs.
    Please can someone help? Urgently need to resolve the problem.
    Many thanks.

    Your issues are with notebook, not a workstation tower, and with Parallels and Windows. Maybe with Lion thrown in.
    Hopefully you know where Parallels forums are and also that you installed Windows natively first on its own partition so you can test and run it direction rather than as a VM only as well as that sometimes takes the VM out of the equation.
    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro

  • Need to know the sqluery to find the disabled date from OIM 9.1.0.1

    Hi Experts,
    Need very urgent inputs from you all for the preparation of our audit.
    We are using OIM9.1.0.1
    We need to know the sqlquery for finding the Disabled date in OIM given the user ids, as currently we are unable to get the exact data from Historical Reports Option in OIM.
    I need to give in this format:
    select usr_login, usr_disabled from schemaname.tablename where usr_login in
    ('aaa','bbb'..... etc)
    We have three attributes :USR_DISABLED_BY_PARENT,USR_DISABLED,USR_DEPROVISIONING_DATE,but none of them give the exact date,
    USR_DISABLED gives just a flag as 1 or 0.
    Also there are no other fields in the corresponding usr table.
    So how to fetch the exact Disabled date from OIM system when I input the user ids.
    Your immediate response is appreciated.
    Thanks
    SS

    In the entire thread many experts have given nice queries in different formats...
    The best approach would be to open up the SQL Developer, connect with the OIM Database and experiment with all sorts of SQL queries provided by all the experts..
    Learn some SQL techniques, like Inner Join etc...
    Then you yourself will be able to figure out what you need, in exactly which format, for which users and for whom you have to restrict
    Then not only this question, you would be able to solve dozens of similar such issues yourself...
    And trust me, nothing can match that...
    Just in case, you are not familiar with SQL Developer,
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
    Oracle SQL Developer 3.2.1 (3.2.10.09.57)
    September 24, 2012
    The Disabled DATE will be the creation date of that entry in the UPA_FIELDS table when Users.Status changed to Disabled.
    SELECT USR.USR_LOGIN, UPA_FIELDS.CREATE_DATE
    FROM UPA_FIELDS
    WHERE UPA_FIELDS.FIELD_NAME='Users.Status'
    AND UPA_FIELDS.FIELD_NEW_VALUE='Disabled'
    AND UPA_FIELDS.UPA_USR_KEY=USR.USR_KEY
    AND USR.USR_LOGIN NOT IN ('XELSYSADM', 'XELOPERATOR', 'WEBLOGIC');

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • Need to know schema and table name

    Hi folks,
    I need to know the schema name and the table name associated with a column. Though jdbc has the api to getTableName and getSchemaName, some database vendor like oracle does return empty upon call of mentioned methods. I found that oracle driver does not support that ��
    Can any one give me the solution? It is urgent. Or do you suggest any third pary jdbc driver which can provide those?
    Thanks
    Angelina

    hi,
    does not work for me.
    more pls
    --thanks                                                                                                                                                                                                                   

Maybe you are looking for

  • I got my phone wet how do i get my photos off icloud,

    I dont know how to get my photos off photo share my phone was droped in the water and will not work.

  • Scroll bar for tabcontrol

    Iam using Tabcontrol in my project.On tabcontrol Iam having lot of controls and indicators.The problem is I cannot see all the controls and indicators on a single screen i.e I should move the tabcontrol up and down.I would like to know wether can I a

  • Hide the Signature option in contextual menu

    is there a way to control which item is shown in the contextual menu that appear on PDFs when tap holding? This usually shows 4 options: Text Note Freehand Signature We wouldlike to hide Signature. Thanks

  • What is the 'Other' section in iOS

    I can't seem to find a definitive answer on Google.  I noticed that the Other section on my iPhone is now taking up 1.3 GB of space and I'm just curious as to waht this is.  I still have 10+ GB left so it's not a big deal, just curious as to what cou

  • CommandButton action would not be invoked

    I am trying to follow the JSP 1.2 standard. The page is rendered correctly. The drop down list is populated successfully, which means my bean is correctly registered and initialized. However, when I click the button, the action is not called. (I have