How to detect the OS

Dear sirs...
in jdeveloper 10g 10.1.2, how can i detect the current operating system?
thanks for any help

Try:
String os = System.getProperty("os.name");
See following link for more info:
http://java.sun.com/docs/books/tutorial/essential/system/properties.html

Similar Messages

  • How to detect the Acrobat Browser Plug-in version installed on a users system for non-IE browsers?

    How to detect the *Acrobat Browser Plug-in version* installed on a users system, on Firefox, Safari, Opera, etc?
    Or one script for detecting Plug-in version for major browsers. Need full example code.

    Wrote an article on this with code samples (Javascript + HTML) - basically there are differences between IE and other browsers. Chrome natively comes with the Chrome PDF Viewer so I've incorporated that in my detection script.
    The script detects the browser type, and the installed acrobat version...
    Have a look here:
    Detect the Adobe Reader Plugin

  • How to detect the path of Temp directory

    I am writing a class library which allows users to manipulate a database in the web server java applications/applets. In my logic the Application/Applet communicate with a CGI script/Servlet in the server and that do all the database handling. My objective is to make the Client independant from the Database Drivers, and to some restrictions and possible security threats that can arrice when accessing the database directly.
    99% of the work is done and now I am doing the fine tuning.
    My Problem:
    When the user downloading a blob object from the server database. each time the program read the blob it will get a new copy from the server. This is not good if the blob is large (few 100 megs) . So I am going to implement a cache system. but the problem is If I am caching in the memory it will not support large objects (Memory is a limited factor). So the preferance is use the Temperary files but I do not know how to detect the path to temperary folder.
    And my 2nd questions is are the applets allowed to write and read in temperary folder.

    The Java default temporary file path can be determined with
    System.getProperty("java.io.tmpdir")This is typically the same value as the os environment variable

  • How to detect the HTML extension window close in In-design? Does the In-design throws any event on opening/closing of extensions?

    How to detect the HTML extension window close in In-design? Does the In-design throws any event on opening/closing of extensions?
    I have a HTML extension running in In-design CC 2014 version.
    I want to perform some required set of actions before my extension window is closed(by clicking on the cross button on top right corner).
    Does In-design throws any event for it? Or can we capture it using C++ plugin in some way?

    Naah.......haven't got any event for that yet.
    Although, since HTML extensions are using chromium browser,  as a workaround, u can attach listener to HTML onClose event, but it won't solve any purpose if you
    are looking to logout session or do some business login in your code.

  • How to detect the final loop iteration of a step in a PostStep Engine Callback?

    I see the need to use a PostStep Engine Callback and look at the Step.Result container of the caller.
    My issue: If the caller is configured to loop, the PostStep Engine CB executes with each iteration and I do not see how to detect the final iteration (which is the only iteration I am interested in).
    Ideas are welcome. Thanks in advance,
    Guenter

    Guenter,
    well, the way i discripted IS the generic way. The reason for this is the following:
    You can compare TestStand very well with procedural programming languages. So you have variables with different lifetimes and scope. RunState is one variable, which is available in every scope, but it may have different content.
    So you leaving the execution of your clientsequence in order to call the callback, you leave the scope of the RunState from your clientsequence. But only there the information is stored on how many iterations are left. It does not make sense to pass this anywhere, since the execution of your clientsequence has to decide if to loop further or not.
    But, please note that there are different scopes for the "disable result recording" as well. You have found the most global one, the station option. But you can as well set this in the sequence settings (Edit >> Sequence Properties >> Disable Result Recording for All Steps) and at step-level (Run Options >> Record Result {uncheck it}).
    Looping on a single step using the step settings, you can additionally choose not to record results for each iteration. This will lead to only a single entry in the ResultList, the overall result of the looped step (if resultcollection is enabled of course!).
    hope this helps,
    Norbert 
    Message Edited by Norbert B on 08-22-2008 02:10 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to detect the end of a loaded swf file

    Hello Guys
    This is my first time on this forum, come here with a great
    hope
    I have loaded a picture file (jpeg) and a video file (swf)
    into the main flash file using xml
    on frame 3, I load the picture and on frame 7, I load the
    video, there is a stop action on frame 6
    Now when the flash is executed the picture is displayed ( it
    says "Click here to view the video")
    when the user click the picture , the video is loaded and
    starts to play ---- so far everything is working fine
    now what I want to do is, once the video finishes playing (
    not stoped) I want to display the picture again
    can you tell me how to detect the end of an external loaded
    swf files,
    Please help me
    Thanking You
    Shriram

  • How to detect the sign of a number?

    I have output which gives either negative number or positive number. My problems is how to detect the sign of the number and output boolean value? For example if input number is negative like -23.11 I want to output false and if the number is positive like 17.99 I want to output true.
    T H A N K S!
    Solved!
    Go to Solution.

    Message Edited by Phillip Brooks on 07-16-2009 11:08 AM
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Does any body knows how to detect the resolution of an inserted image in word?

    Does any body knows how to detect the resolution of an inserted image in word?

    I'm not sure I understand your reply but when you insert images into Word that are larger than will fit on the page, they are automatically compressed. If you right click and select Size and Position you can restore it to 100% but you will not see all the image.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to detect the key enter with a numerical control without using loop event?

    I want to accept a numerical value only when the key enter is pressed, but without using the event. How to detect the char "enter" with a numerical control?
    Thanks!

    When the user edits a numeric control with a keyboard, its property "key focus" is true. When the user hits enter, key focus becomes false. Poll the property to latch the control valuse at the true-false transition. That won't work if the user modify the control using up and down arrows.
    LabVIEW, C'est LabVIEW

  • How to detect  the Collission for duplicated movieclps

    Hey guys .. i am back with set of query..till now .. key
    press movement a rocket (mc) is moving left right up down in a
    defined stage area. and i am able to generate some fire balls
    randomize falling from top. this is just i am duplicating the movie
    clip(fireball_mc) .... now i want incase or when the rocket (mc)
    touch the fire ball programm shold detect the collsion and generate
    a score board. well for this i have tried a script for two movie
    clips ... wchich is working but ..i don know or i m not gettng the
    logic how to detect the collission for duplicated movie clips...
    well i m just giving the script for oinly 2 movie clips
    coliding...can any one tell me how to do it with randmize or
    duplkicated mcs??
    for 2 movie clip ...
    _root.mc1.onEnterFrame = function() {
    if(this.hitTest(_root.egg)) {
    _root.result="Oh no..... we are dead";
    } else {
    _root.result="we are going fine";
    (this is happening ..but let me know how can i get the same
    result for ranndom mcs)
    hope someone can help me out ...
    i appriciate ur valuable time to read this..
    thanking you

    Hey thx for ur suggestion...but as i said m very much new to
    actionscript (more designer) so i don have much idea... most of the
    things i m doing for this game i m going through lots of references
    then i tried to understand te codes m implmenting them to my
    need..can u explain me little more about arrays u haves asked for
    loops u asked me to use the hittest function..please /.. i will be
    greatfull to u... thx

  • How to detect the Port Number of apex : localhost:????

    Dear firends,
    I install APEX 3.0 on oracle 10g release 2.
    How to detect the Port Number of apex to acces it ? (localhost:????)
    regards
    siyavuş

    Have you installed the Oracle HTTP(OHS) server yet ? If you have then the HTTP config file should specify what port the HTTP server listens at. This port is the port number you use to access APEX

  • How to detect the iPhone Date and Time

    Hi guys,
    I am new this plateform and I am working on an iPhone application in Objective-C. I need to detect the date and time of iphone clock in the objective-c.
    Please let me know if anybody knows how can I do it.
    Thanks,
    Ranjit Singh

    Ranjit,
    Be sure to consult the docs for the iPhone SDK. If you are running the simulator, you probably have access to frameworks and classes not available on the phone itself. The iPhone docs don't show NSCalendarDate as a valid class for iPhone (but it exists for MacOS). I think you'll need to use NSCalendar if you wish to have it run on the device (and not just the simulator).
    Do you have a device you are testing on? It would be good to verify this (I don't and therefore must use the simulator).
    Cheers,
    George

  • How to detect the two Enter in  HTTP Request Line"

    I'm writing a HTTP Server. I want to ask how can I detect the "two <Enter> press" when the client finishes his request.
    Suppose the client typed the following:
    GET /xxx/index.html<ENTER>
    <ENTER>
    (Response header and Entity body here)
    if the user typed:
    GET /xxx/index.html<ENTER>
    If-Modified-Since:xxxxxx<ENTER>
    (Response header and Entity body here)
    How can I solve the above two cases?
    I have used the folowing statement but it fails, why?
    BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream( )));
    String request = null;
    request = in.readLine();
    Another problem in my WebServerThread is the output to the screen as shown in below:
    java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
    at java.net.SocketInputStream.socketRead(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:85)
    at java.net.SocketInputStream.read(SocketInputStream.java:63)
    at java.io.InputStreamReader.fill(InputStreamReader.java:168)
    at java.io.InputStreamReader.read(InputStreamReader.java:244)
    at java.io.BufferedReader.fill(BufferedReader.java:134)
    at java.io.BufferedReader.readLine(BufferedReader.java:294)
    at java.io.BufferedReader.readLine(BufferedReader.java:357)
    at WebServerThread.run(WebServerThread.java:28)

    A second <ENTER> following directly after another will appear as empty line when you use in.readLine().

  • How to detect the size of an image

    Hi,
    I have a servlet which grabs an image (jpg or gif) from a BLOB stored in my database and sents the image back to the client through the ServletOutputStream. This all works good and the image is presented nicely. However, I now want to have my servlet detect the size of the image, and if it is too big resize the image and return it.
    As I am new to images in JAVA I am unsure how to do this and what tools to use for it. I found some information on JAI, but this seems way to elaborate for what I need. Please let me know if anyone knows how to do this.
    Thank you and regards,
    Joost Schouten

    This code figures out the size of any object in bytes. I am not sure about resizing the image though..
    public int getSerializedSize(Object object)
           try
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              ObjectOutputStream oos = new ObjectOutputStream(baos);
              oos.writeObject(object);
              byte[] bytes = baos.toByteArray();
              oos.close();
              baos.close();
              return bytes.length;
           catch(Exception e) //not good
              e.printStackTrace();
           return -1;
         }Rishi

  • How to detect the OS version and the hardware info??

    Hi all, according to the project needs, I to know how to detect OS version and the hardware info.
    The point is to detect client's OS version, weather Win98, 2000, XP, Vista.
    I have been search the information for several days already.
    But can not really found a example which returns the OS version like"Windows XP Version 2002 *****".
    And also could not find the CPU type such as"Core 2 due, or  pentium D".
    Is there anyone have done this before?
    Thanks.
    The Info I need looks like the photo below.
    Message Edited by EricLu on 07-21-2009 08:09 PM

    Well, in fact I have the VI and also read the topics as well...... The searching tag is OS info , system info......... After reading your post, now I understand the relation between the version number and the real OS version now, tks.  And another problem is, the processor type returned within the VI have only 4 type:"INTEL 386, INTEL 486, PENTIUM, Unknown". 
    It can not really return my CPU TYPE. For example the desktop I’m using now is a Pentium, D , 2.80G, 2.80G.. and it only returns type "Pentium". That's why I'm asking is there any other way to do this...... (( Please forgive me if you can not really know what I'm talking about in my first post, now I know how bad my english is.......   ))  I guess I can only try to find out the solution from the registry then... Thanks for your information and reply. 
    Message Edited by EricLu on 07-21-2009 09:25 PM
    Message Edited by EricLu on 07-21-2009 09:26 PM

  • How to detect the number of marker (cuepoitName) with same name from a list.

    ... it is the second step of my previous question.
    From a sound I take a list of cuepointName with different name, for exemple:
    Mylistcuepoint =  ["reg 01", "reg 2", "name 1, "name 2", "name  3"] etc.
    Which command I must use to detect the cuePointTime only for the cuepointName: "name 1", "name 2" "name 3" ...
    My second question, for a second script is: how can I count how many  cuePointName with "name 1", "name 2", "name ...." I have in "Mylistcuepoint"?
    I can load several sound member so "Mylistcuepoint" can change obviously for the number of marker of "reg ...." and for the number of marker of "name ...." but the first word ("reg" or "name") it will be always the same.
    Tanks

    From a sound I take a list of cuepointName with different name, for exemple:
    Mylistcuepoint =  ["reg 01", "reg 2", "name 1, "name 2", "name  3"] etc.
    Which command I must use to detect the cuePointTime only for the cuepointName: "name 1", "name 2" "name 3" ...
    I already showed you how to do this in response to your last question.
    My second question, for a second script is: how can I count how many  cuePointName with "name 1", "name 2", "name ...." I have in "Mylistcuepoint"?
    It is a list like any other. Iterate through the items looking to see if they match your criterion/criteria and increment your found count (or add indices to a list) as you go:
    tSearch = "name 1"
    tFoundCount = 0
    Mylistcuepoint =  ["reg 01", "reg 2", "name 1, "name 2", "name  3"]
    if Mylistcuepoint.getPos(tSearch) then
      repeat with nn = 1 to count(Mylistcuepoint)
        if ( Mylistcuepoint[nn] = tSearch ) then tFoundCount = tFoundCount +1
      end repeat
    end if

Maybe you are looking for