Get default JRE version...

If several versions of Java were installed in a client machine,
and in IE -> Internet Options -> Advanced Tab only one is enabled / checked.
How to get the default / checked JRE version in JSP ?

They are called Java SERVER Pages for a reason. They run on the server, not the client. The client machine is completely irrelevant to JSP/Servlets, so what version of java you have installed their doesn't matter at all.
Unless of course you want to run an applet. Whereas you put the appropriate constraints into your applet/object tag.
Check out this page: http://java.sun.com/products/plugin/1.3/docs/tags.html

Similar Messages

  • How to get which JRE version is used during runtime?

    Hi.
    I want to know in my application which JRE version the user is using. Is there some method in Properties Object?
    Thank you in advance

    System API tells all...
    "The current set of system properties for use by the getProperty(String) method is returned as a Properties object. If there is no current set of system properties, a set of system properties is first created and initialized. This set of system properties always includes values for the following keys: "
    Key                   Description of Associated Value
    java.version          Java Runtime Environment version

  • Get JRE version

    Hi, all
    How to can get current JRE version from registry
    please help me
    thanks

    hi,
    Here you go...
    http://forum.java.sun.com/thread.jspa?threadID=5183961&messageID=9876540

  • Jre version & location

    hello
    how can i get the jre version & location from applet? is there any way for this?
    thanks
    bashar

    Look up the docs for System.getProperty(String) or System.getProperties().

  • What is the default JRE?

    I installed JRE 1.4.1 and then 1.4.2_04 (in that order) on a Windows 2000 system.
    Under About tab in Java Control Panel it says the default is 1.4.2_04.
    What determines which one is the default? Is there a way to change it?
    On a Windows NT system I installed 1.4.2_04 and then 1.4.1 JRE in that order.
    The default according to the About tab is now 1.4.2_04.
    My conjecture based on the Windows 2000 behavior is that he last one
    installed becomes the default. Evidently, this is not true base on the Windows NT behavior.

    If you want to run Java applications (as opposed to applets) with other than the default JRE version, you need to use the full path to the version of java that you want to run with. For example:
    C:\Program Files\Java\jdk1.4.2_06\bin\java.exe <your JavaClass>
    To change which Java Plug-in version is used by a browser to run applets, open Windows' Control Panel and select the Java Plug-in. On the Advanced tab is an area "Java Runtime Environment" and in that is a drop-down box that probably says "Use Java Plug-in Default".
    This dd box allows the user to select the version of the Java Plug-in that s/he wishes to run with. Note that after a change in this parameter, ALL browser windows must be closed for the change to take effect.
    Some versions of the Java Plug-in are somewhat different. There is documentation for each version, if needed. Here is a link to the 1.4.2 information:
    http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/control_panel.html#advanced

  • Which JRE version during runtime?

    is there a way to get the jre version during runtime?
    like when you call
    java -versionfrom the command line
    I dont want a whole load of stuff I just want to know if its 1.4.0 or above?

    System.getProperty("java.version")

  • Can you get Netscape launch with different default JRE Plugin versions?

    Does anyone know how to do this?
    OS: WinNT4
    Browser: Netscape 6
    Situation:
    We want to standardize on JRE 1.4.1 but some of our clients web applications use JRE 1.3.1 and they won't run with the newer VM. So I need to launch Netscape with default plugin as 1.3.1 for some apps and default plugin as 1.4.1 for others.
    Ideally, I would like to run a client logon script that makes a registry change to set the default JRE plugin to either 1.3.1 or 1.4.1 BEFORE Netscape launches and goes to our client URL.
    Does anyone know which reg keys does this? Is there a better way?
    Thanks.

    You can specify the JRE through the MIME type:
    http://devedge.netscape.com/viewsource/2002/markup-and-plugins/
    "You can invoke the Java plugin for Netscape 7 and other Mozilla-based browsers by using the appropriate Java MIME type. Here is an example:
    <object type="application/x-java-applet;jpi-version=1.4.1_01"
    width="460" height="160">
    The above code mentions a version specific MIME type, and if the Mozilla-based browser such as Netscape 7 doesn't have JRE 1.4.1_01 installed, the alternate text is displayed."
    Maybe that's something that you can use here.

  • How to change the default JRE when there are several version of JRE in Sys

    How to change the default JRE when there are several version of JRE in System?
    i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
    Now the JRE is jdk1.3\bin
    When run class that was compiled with jdk1.5,throw:
    java.lang.UnsupportedClassVersionError
    How can i change the jre to 1.5?

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Is Apple aware of this problem? No longer supported?

    My web page uses a Java Applet to allow my visitors to replay chess games; the Chess Viewer Deluxe applet was written by Nikolai Pilafov some time ago and has been working properly for some time (until recently). I don't monitor this part of my site regularly so I am not sure when it began to fail. On his web site [http://chesstuff.blogspot.com/2008/11/chess-viewer-deluxe.html] he has a link to check LiveConnect object functionality (which fails for OBJECT tags). His recommendation is to "seek platform specific support which might be available from the JRE developers for your platform".
    I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Until I checked the LiveConnect object functionality, I was unable to identify the source of the console error messages. This does seem to be the smoking gun.
    Is Apple aware of this problem? Are these classes no longer supported? Has anyone else had this problem? You can attempt to recreate the problem locally by going to my web page: http://donsmallidge.com/DonSmallidgeChess.html
    Thanks in advance for any help you can provide!
    Abbreviated Java Console output:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
    load: class ZeroApplet.class not found.
    java.lang.ClassNotFoundException: ZeroApplet.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)
    load: class JavaToJS.class not found.
    java.lang.ClassNotFoundException: JavaToJS.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)

    I just went up to check the LiveConnect object functionality page AND IT WORKED THIS TIME! I must confess, this is very mysterious. I will do some more checking and reply here if I can determine why it is working now (and more importantly, why it didn't work before).

  • Why do i always get the Japanese version of JRE/JDK?

    why do i always get the Japanese version?
    i am in tokyo and i just want to get the English version of JRE and JDK. Why is it so difficult, I have been trying for the last 8 hours to find mirrors and other versions and installing all of them only to see they are all in Japanese and I don't know why. I checked my settings, my local language is German or English, i.e. not Japanese, and always I install it it's in Japanese and afterwards I get the compiler messages in Japanese and I don't understand them.
    And then... why is it so difficult to make a comment at sun? i have been to ibm's page and google, you just fill out a form send it, it takes 5 secs, here it takes 20 minutes to find where you can ask a question, then some more to fill out the questionaire...
    could you pls tell me where to get the US/english version for jre 1.4.2.x and jdk 1.4.2.x?

    You probally ARE getting the english version. If you are using a japanese version of windows or an english version of windows with the locale setting set to Japan then all of the menus (including the installer) will be displayed in japanese. So it just seems like you are installing a japanese version.
    To check your local in windows 2000 go to the control panel and then choose regional options. Then, select the general tab and change your locale to one of the English locales. Also, if you want to keep your locale setting set to Japan there are other workarounds. However, first try this.

  • I installed iWork11 but the '09 versions of the software are still running--and the default. What do I need to do to get the '11 versions working?

    I installed iWork11 but the '09 versions of the software are still running--and the default. What do I need to do to get the '11 versions working?

    It's very simple. If you want to use iPhoto, just let it manage things as it does. Other than that: Export from iPhoto and delete the image from iPhoto. That will remove the master and all versions.
    If space is an issue... use an external disk.
    Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things, deleting them or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Regards
    TD

  • Finding out JRE version

    I don't know, how to make a request for a new feature to JRE, but I have a suggestion for a very small enhancement: every now and then I need to check the version of the current default JRE in my machine, e.g. to check the current build of u10. So I open a command prompt and type "java -version". But to me requiring to type that extra option "-version" is a bit annoying !?
    When I just say "java" I get a whole lot of information, how to use java launcher, but NOT THE VERSION NUMBER of the JRE ?!?
    So, why not just add also the version information to the help screen ?
    Now, what should I do to get this idea forward ? Or, even better, could someone here take it forward ...
    ;-)

    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    If it is 32 bit, it is not mentioned.

  • No JRE version found in launch file for this system

    Hi,
    I have an application which is launched by JWS.
    When we use JWS from 1.4, it runs fine. But JWS from 1.5.0_15 gives the error "No JRE version found in launch file for this system"
    In both the JWS(1.4 and 1.5.0_15)cases, we install JRE1.5.0_15 using the installer and used for invoking the application.
    We invoke mailclient.jnlp, which inturn invokes the installer.jnlp and KanaJreInstaller.asp
    <<mailclient.jnlp>>
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
    spec="1.0"
    codebase="http://mpshanmu-gx520:80/10r3/"
    href="mailclient.jnlp">
    <information>
    <title>KANA Agent</title>
    <vendor>KANA Software, Inc.</vendor>
    <homepage href="http://www.kana.com"/>
    <description>KANA Suite 10.3.0</description>
    <icon href="images/mail_logo.gif"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="KANA1.5.0_15" href="KanaJreInstaller.asp"/>
    <jar href="lib/mailclient_s.jar"/>
    <jar href="lib/link_s.jar"/>
    <jar href="lib/spell_s.jar"/>
    <jar href="lib/ssce_s.jar"/>
    <jar href="lib/kc_framework_s.jar"/>
    <jar href="lib/kc_sharedGUI_s.jar"/>
    <jar href="lib/xalan_s.jar"/>
    <jar href="lib/xerces_s.jar"/>
    <jar href="lib/java2com_s.jar"/>
    <jar href="lib/jgl3.1.0_s.jar"/>
    <jar href="lib/rsrcbundle_s.jar"/>
    <jar href="lib/response_s.jar"/>
    <jar href="lib/HTMLEditorEnterprise_s.jar"/>
    <jar href="lib/jakarta-oro-2.0.4_s.jar"/>
    <jar href="lib/jdic_s.jar"/>
    <extension name="Sun Libraries" href="sunextensions.jnlp"/>
    </resources>
    <resources os="Windows">
    <nativelib href="lib/windlls_s.jar"/>
    <nativelib href="lib/jdic-native.jar"/>
    </resources>
    <application-desc main-class="kana.mail.wkstn.AppMain">
    <argument>-serverlist</argument>
    <argument>http://mpshanmu-gx520:80/10r3/servers.xml</argument>
    </application-desc>
    </jnlp>
    <<KanaJreInstaller.asp>>
    <%@ language="vbscript"%>
    <%
    Response.ContentType="application/x-java-jnlp-file"
    Response.AddHeader "x-java-jnlp-version-id","KANA1.5.0_15"
    dim fs,f,ts
    set fs=Server.CreateObject("Scripting.FileSystemObject")
    Set f=fs.GetFile("C:\Program Files\KANA\KANA Response Web Server_10r3\installer.jnlp")
    Set ts=f.OpenAsTextStream(1)
    Response.Write(ts.ReadAll)
    ts.Close
    set ts=nothing
    set f=nothing
    set fs=nothing
    %>
    <<installer.jnlp>>
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
    spec="1.0"
    codebase="http://mpshanmu-gx520:80/10r3/"
    href="installer.jnlp">
    <information><title>KANA J2RE 1.5.0_15 Installer</title>
    <vendor>KANA Software, Inc.</vendor>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3+"/>
    <jar href="lib/installer.jar"/>
    <jar href="lib/JRE_KANA1.5.0_15.jar"/>
    <property name="jre.container" value="JRE_KANA1.5.0_15.jar"/>
    <property name="jre.execute" value="bin\\javaw.exe"/>
    <property name="jre.version" value="KANA1.5.0_15"/>
    </resources>
    <installer-desc main-class="JREInstaller"/>
    </jnlp>
    Thanks

    >
    We are using sun JRE(1.5.0_15) only. We extract Sun JRE and build it as KANAJRE.jar and signing.>I have never heard of KANAJRE. Would you care to post a link to the site, or should we just keep guessing? (My patience for random guesses is running out.)
    >
    We install using Intaller class and that is getting listed in the Java Control panel and enabled too.>List as what?
    Does it list it with the entire string "KANA1.5.0_15" or is is just listed as "1.5.0_15"?
    Because this line from the JNLP file..
    <j2se version="KANA1.5.0_15" href="KanaJreInstaller.asp"/>..had me convinved it was a non-Sun JRE. Not so much the href, but most especially the version attribute.
    If it really is the Sun JRE, I would expect this to work.
    <j2se version="1.5.0_15" href="KanaJreInstaller.asp"/>And as an aside. If this installer is giving you trouble and the app. requires the 1.5.0_15 JRE, why not simply the default Sun JRE installer? What advantages do you think this installer offers?

  • Java Runtime Environment (JRE) version 1.6 is not supported by this driver"

    Goal: create new ODI install in testlab on single server
    Installer: ODI newbie
    Server Software Installed: all 32-bit
    Windows 2008
    sql 2008
    JDK 1.6_22
    sqljdbc4.jar (downloaded from Microsoft's site)
    No weblogic server installed
    Issue: Using ODI Studio to create Master Repository. Jar files and config described below already implemented. When press “Test Connection ” in ODI Studio I get this error: : “Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0"
    Details:
    (Sqljdbc.jar and) Sqljdbc4.jar downloaded from here:
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=99b21b65-e98f-4a61-b811-19912601fdc9&displaylang=en
    (Sqljdbc.jar and ) Sqljdbc4.jar placed in C:\Users\Administrator\AppData\Roaming\odi\oracledi\userlib directory
    Repository Connection Details:
         Technology: Microsoft SQL Server
         JDBC driver: com.microsoft.sqlserver.jdbc.SqlServerDriver
         JDBC URL : jdbc:sqlserver://ODI:1433;SelectMethod=cursor
         User : odi
    What am I doing wrong? TIA.

    More details:
    ODI = ODI version 11.1.1.3
    SQL Server uses default install options.

  • Installing several JRE versions on one computer

    Is it possible to have more than one version of JRE installed on a computer? I have a program which seems to run better in 1.4.1 than 1.4.2, but since 1.4.2 is the more recent version I'd rather have that. Can I install both, and can I 'switch' them on and off, or specify in the command to run the program which version it uses?
    I notice that Open Office's installation seemed to be able to detect and choose betwee different versions, so I hope this is possible.

    You can have as many JRE's on a single computer as you want and you can pick and choose which one you want by pointing to the right directory containing the java executable in your startup script/binary. You can also make use of PATH environment variable set the "default" JRE that would be invoked if java binary invoked without the absolute path.

Maybe you are looking for