Checking Client JRE version

This problem is killing me! I need to check what version the
client's JRE is so that they can download and run my app from my web server. They need JRE 1.4.1, and if they don't have it, I want to redirect (potentially) to a page I will create that will inform them of the requirements. (The client will never have admin rights, so can't install it directly from Sun)
I've looked at Jsp and applet solutions but can't get anywhere with it. Does anyone have any ideas on getting around the security issues?
To clarify a bit more, I can have code in the applet to check the
version on the client (jsps will only check the server version) ---
String value = System.getProperty("java.specification.version");
if (value == "1.4.1") {
continue and go to a http page -- but can't redirect from an applet
else {
redirect to an error page or inform the server somehow so I can
redirect the browser.
Any way I can redirect a http page somehow from an applet?
Or set a property in the server which could be read elsewhere...
elpico

use Applet.getAppletContext() to get the AppletContext that represents the page currently displayed by the browser.
then do AppletContext.showDocument(URL�url) to redirect to another page.
AppletContext currentPage = this.getAppletContext();
String value = System.getProperty("java.specification.version");
if (value == "1.4.1")
//OK -> continue.htm
currentPage.showDocument(new URL("http://localhost/continue.htm"));
else {
//ERROR -> error.htm
currentPage.showDocument(new URL("http://localhost/error.htm"));
}thx for the dukes ;),
elchaschab

Similar Messages

  • Jar file for multiple client JRE version

    I have two jar file. Fjtable.jar & fjtable16.jar
    fjtable.jar is for clients those who are using JRE 1.5 & fjtable16.jar is for jre 1.6 version client Users.
    both the jar file i have given in
    In formsweb.cfg :
    Archive = fjtable.jar , fjtable16.jar
    But this give error when accessing forms for those jre1.5 users.
    Exception in thread "AWT-EventQueue-2" java.lang.UnsupportedClassVersionError: Bad version number in .class file
    How do i give a condition in formsweb.cfg, if client java is jre1.5 then use fjtable.jar else use fjtable16.jar.

    It's used in the page that calls the Forms configuration with the correct jars : this should tell you which JRE your client is on and can be adapted for your config:
    <html>
    <body>
    <table width="100%">
    <tr><td>Click on the link below to run your app:
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
        var version = '1.6' ;
        if (deployJava.versionCheck(version)) {
          document.write("<a href=\"http://myhost.local/forms/frmservlet?config=app16\">MyApp v1.6</a>");
        } else {
          document.write("<a href=\"http://myhost.local/forms/frmservlet?config=app15\">MyApp v1.5</a>");
    </script>
    </td></tr>
    </table>
    </body>
    </html>PS. Thanks Francois I'm sure this'll come in useful at some point know how to do this :)
    Steve

  • JRE version problem (XML Parsing)

    Hi,
    I posted a question earlier about an issue I'm having with an applet running in the Eclipse IDE but not in-browser. I have checked the JRE version for both and the browser is running 1.6.0_01 and the IDE is running 1.5.0_06. Now I could uninstall the former to force the browser to load the latter I believe but that doesn't solve the issue as I would need it to run on the newer JRE version.
    So my question is, what would cause the following error to occur in a later version of the JRE?
    Exception in thread "Thread-9" javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
    Thanks in advance,
    Dan

    It has nothing to do with new or old version of jre it has to do that the explorer jre (5) can not find the jar file it needs. It is looking for the class org.apache.xerces.jaxp.DocumentBuilderFactoryImpl but it can not find it.
    In you Eclipse you do have this jar that's why it is running, just copy the jar to the lib or lib/ext folder in the jre 5 and everything should work.

  • Java is blocked. Don't know why. Error: Application Blocked Java Plug-In 10.51.2.13 using JRE version 1.7.0_51-b13 Java HotSpot(TM) Client VM

    I keep receiving this message when trying to use http://www.exodus-chats.org/DolTerias . it uses a java based chat system, and won't allow me to open the application. I've tried checking through my options menus, but I've found no reason as to why this can be blocked. The only thing I've come up with is my plug ins, but it doesn't allow me to change anything to allow the app to be used.
    Application Blocked
    Details: Java Plug-In 10.51.2.13 using JRE version 1.7.0_51-b13 Java HotSpot(TM) Client VM

    Starting in Java 7 Update 51, sites that would normally be blocked based on your Java Security settings can be added to an Exceptions list, via the Java Control Panel. See the Java Help page [http://www.java.com/en/download/faq/exception_sitelist.xml How can I configure the Exception Site List?] for details.
    Ref: http://kb.mozillazine.org/Java#Java_security_prompts

  • Version check of JRE in app

    Hi,
    I want my application(not web-based or whatever) to know which version of JRE the client is using.
    The thing is, I know it's with System.getProperty("java.version"), but I want to compare it with another version string in the application. The user JRE version must be equal or greater than the version.
    For ex: if the application was build with 1.4.0_01 and the user has 1.4.1_01, it must be accepted, but not if it's 1.3.x or whatever.
    I've done a temporary method with a string tokenizer to evaluate each number and see if it's up to date, but is there a method or utility already there that checks if the version is equal or better?
    Thx
    Frank

    i just have the same kind of problem. even more so, since i noticed that there are possibly more non-numeric characters in the version string, like "1.4.0-beta3", so even using a StringTokenizer splitting the string by the "." and "_" characters (like i think you do, from the example in your posting), the last part would cause a NumberFormatException in many cases.
    of course you could include the "-" character in the tokenizer and drop the last token, but you can never be sure if there won't be version strings like "1.5.2b" or such in the future. a workaround here would be taking each character from the token, check if it's a number, add it to another string if so, or stop if it's a non-numeric character or the end of the string. then you could transform the constructed string into an integer and compare it to the corresponding part of the required version.
    however, this seems to be quite a lot of not too elegant trickery which i'm not even sure will work in all cases, and it's definitely too much work for a simple version check. anyway, i haven't found any other way yet, too :/ if anyone knows, please let me know...

  • J2SE/JRE Version(s) on Clients

    Hi All!
    Can someone offer some guidance on what version(s) of J2SE/JRE we should have installed on our clients (PCs)?  We have standardized on 1.4.2_13 and are moving to 1.4.2_15 for Vista support, but we've run into several situations where SAP is asking for us to also install 1.5 or 1.6, and we also have other vendors asking for various versons of J2SE/JRE.  In the past we tried to use the same version as the version on the server, but we're finding this is hard to do.
    Also, if you're running multiple versions, how do you manage cases where 2 browser apps want to use different versions since (at least with IE) it appears only one can be the default.
    Thanks!
    Jeff

    Jeff,
    Unfortunately, as you have realised, you're stuffed when it comes to IE and Java.  Only one can be used.
    We have to produce a certified list of apps that can be run against a common JRE.  It looks like a neat matrix sheet and normally works around the lowest common denominator of JRE.
    Unless SAP don't support you on older JRE versions, don't be bullied by them into upgrading.
    Unless there is a very compelling reason (e.g. you need a patch that requires an upgrade) then I wouldn't change it, for simplicities sake.
    I found this link to be of use though:
    Re: Assigning Frieght conditions by Vendor
    Best Regards,
    Darryl

  • Checking acrobat reader version on client system.

    Hi,
    I am able to check acrobat reader version if it is 5 / 6 / 7 using activex object but not for acrobat 8.
    infact as per my project specification user must have 5 or higher version of acrobat reader and when client is having acropbat reader 8 activex object returns null; while for 5 / 6 / 7 it returns appropriate object and i can validate the condition.
    can some1 please help me out.
    thank you,
    regards,
    chintan

    okay,
    basically its handled at activex level true, but being a java programmer one should have come across any such problem.
    if one is not aware, please ignore, and i do not think that i have post it somewhere else.
    thank you for your concern sir,
    regards,
    chintan

  • Detect JRE version of the Client Browser fiom a JSP

    I have an Applet that is called from a JSP page that works only in certain JRE versions .
    I was wondering if there is a way of finding the Installed JRE version of the Client ...

    You could use some of the old traditional Javascript code that determines what browser it's running in, and have that code pass different parameters to the applet based on its determination.

  • JRE version check?

    Hi,
    I want put restriction on lower version of JRE's.
    Now I'm checking this in following ways.
               String version = System.getProperty("java.version");
                if ((version.indexOf("1.4") == -1) && (version.indexOf("1.5") == -1))
                      //Show error that inproper JRE version and return;
                }But I want to put restriction on only lower versions of 1.4 JRE, not on upper versions like 1.6.
    How to achieve this?
    Thanks in advance,
    Vikas

    As you suggested we can compile source code with 1.5 or 1.6 which won't run with 1.4.
    But at the time of application invocation I want to show msg that, this application will not work with JRE 1.4
    So I want put generic check for all lower versions like if version is lower than 1.5 show error msg.
    Thanks,
    Vikas

  • How to find JRE Version on client machine

    My client machine does not have any class file, they are running web pages on web Browser.
    We have some specific plug-in based on JRE Versions (e.g. JRE 5 or JRE 6).
    Also we do not have permission to run an applet on client machine as it�s a security concern.
    We have following senerio
    Application server on Machine-1
    Web Server on Machine-2
    Client on Machine-3
    We need JRE version of Machine-3.
    Please provide me a solution.
    Thanks in advanced.

    Old post but replying anyways so that the solution can be used for later
    For Firefox/Mozilla/Netscape this can be done through javascript like below
         for (i=0; i<navigator.plugins.length; i++) {
         document.write(navigator.plugins.name);
         document.write("::::");
         document.write(navigator.plugins[i].filename);
         document.write("::::");
         document.write(navigator.plugins[i].description);
         document.write("<p>");
    It prints out "Java Plug-in::::NPJava12.dll::::Java Plug-in 1.4.1_02 for Netscape Navigator (DLL Helper)"
    from which the plug-in version can be found out
    For IE :
         try{
              var obj= new ActiveXObject("WScript.Shell");
              if (obj!= null) {
    //Version for the installed JRE          
    var ver = shell.regRead("HKEY_LOCAL_MACHINE\\Software\\JavaSoft\\Java\ Runtime\ Environment\\CurrentVersion");
              alert(ver);
         }catch(e){}

  • Use different JRE versions in Oracle Discoverer 10g(10.1.2.0)

    Hello.
    We have a Oracle Forms application which also uses Discoverer Plus and Reports.
    Problem is we have some user clients who uses XP/IE 6.0 while otheres has Vista IE 8.0.
    Based on here
    http://www.oracle.com/technetwork/middleware/ias/downloads/as-certification-r2-101202-095871.html#BABGCBHA
    depending on OS/browser different plugin versions are required. If we
    Can we have different JRE versions in separate clients? Kinda confused with the matrix.

    Hi;
    Please check below which could be helpful for your issue:
    Overview of Using Java with Oracle E-Business Suite Release 12 [ID 418664.1]
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1]
    Oracle Jinitiator and Sun JRE/JPI Support for Oracle Forms Applications [ID 555720.1]
    Regard
    Helios

  • Want a code to check & install JRE automaticallly without user intervention

    hi
    I am trying to run an applet on a machine that is not having JRE on it.
    want a code that will check for such condition and install JRE automatically.
    If JRE is already present then it should check for required version and enable it also.
    please help in this regard.
    thanks in advance
    Santosh.

    The ability to detect the jre at the update level, as well as the ability to install a specific version are only present if the DT plugins are installed.
    These plugins only exist for windows and are only part of the 6u10 (1.6.0_10) versions of java.
    The javascript you show uses an undefined minimumVersion variable.
    also note, you cannot use the wildcard '1.5.0*' in the call to isWebStartInstalled (which takes minimumVersion arg)
    if fixed, this code would still not work as you want, since clients with 1.6.0 or later would sail straight thru and launch.
    I suggest replacing isWebStartInstalled() with deployJava.versionCheck('1.5.0*') .
    then on systems with the plugin installed, if no 1.5.0* version is installed, the latest 1.5.0_XX will be installed before launching the app.
    (assuming the app has also <j2se version=1.5/> or equiv.)
    on systems w/o plugins installed, the latest version of java will be installed, and it will be up to javaws auto download to get 1.5.0* version.
    this could still have problems, especially on platforms not supporting the plugins (non-windows) , since code keeps checking for '1.5.0*', and installing only latest, so you would want to wrap install with something to prevent repeated attempts to install:
    if (deployJava.versionCheck('1.6.0+') && !deployJava.isPluginInstalled()) {
    ---- don't do any install here - ---
    /Andy

  • AIX JRE version vs Sun JRE version

    hi,
    we have a 3th party application installed on an AIX server. The minimum JRE-version for the application is 1.4.2_09. If you type java -version on AIX you get:
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
    Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca1420-20040626 (JIT enabled: jitc))
    I was wondering if the IBM version-numbers are the same as SUN's or is it possbile that IBM 1.4.2 is 'the same' as SUN 1.4.2._10 or such?
    many thanks!
    Stijn

    Hi George,
    Apologies, these release notes were referring to some Security vulnerabilities with some specific JRE versions.
    You can check the currently runing JRE version using:
    This cannot be verified from UI, but you can verify from command-line (see command and output below).
    C:\Program Files\Cisco Systems\Cisco IP Communicator\JRE\bin\java.exe" -version
    java version "1.4.2_19"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)
    Not sure about the second part of this query, will let others to comment on that.
    Thanks,
    Anand

  • Endless Checking for Latest version

    JavaWebStart works fine when used anywhere within the network. However, we we logon to the network using a dial-up connection, java webstart never seems to pass the Checking for latest version screen. This screen runs for as long as the dial up connection stays up. Has anyone seen this type of behavior? Another interestin fact is that webstart's examples run fine with our dial connection. It is slow but it works. Here is my jnlp
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Test-->
    <jnlp
    spec="1.0+"
    codebase="http://mySever/webStart"
    href="myJavaTest.jnlp">
    <information>
    <title>Java Test</title>
    <vendor>Me</vendor>
    <homepage href="http://myServer/webStart/index.html"/>
    <description>java test application</description>
    <description kind="short">Test for WebStart</description>
    <!-- offline-allowed/ -->
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3"/>
    <jar href="first.jar"/>
    <jar href="asrt.jar"/>
    <jar href="vbejb.jar"/>
    <jar href="vbjorb.jar"/>
    <jar href="vbsec.jar"/>
    <property name="ejb.jsec" value="true"/>
    <property name="vbroker.agent.addr" value="frodo"/>
    <property name="vbroker.agent.port" value="14001"/>
    </resources>
    <application-desc main-class="com.test.MyApplication"/>
    </jnlp>

    Our team ran into the same problem trying to connect to one of our test web servers, when the client ran Webstart using JRE 1.4 from behind a certain evil
    Proxy Server, Webstart would get stuck in the "Checking for latest version". Note that this only happens when behind the proxy, everything runs fine with
    a direct connection and users behind the proxy using JRE 1.3 also did not experience any problems. We later discovered that Webstart would complete the downloading of
    updates and run our app, only it would take 40 minutes to complete (left it running overnight). The strange thing was that this problem only
    occured when connecting to certain web servers of ours while there was absolutely no problem whatsover when connecting to other servers.
    What we found was that when Webstart made a request (HEAD and later GET), the server would send the header/file back correctly. But we did notice
    one thing. For the servers that were "working" we noticed that it would send the response and then close the connection. But for servers that
    weren't working we discovered that it would send back the response but it WOULD NOT immediately close the connection. Instead the connection is
    kept alive until a few minutes later.
    The solution was that for web servers that were working, we had the KEEP CONNECTION ALIVE option OFF. (In the case of IIS its the Keep-Alive checkbox).
    On web servers that weren't working (Webstart getting stuck checking for updates) the Keep alive option was ON. That was the problem. Once we disabled
    the Keep-Alive option on all our web servers everything was fine and users behind the proxy, using webstart with jre 1.4 were once again able to
    Check for Updates quickly and proceed to launch the app, whereas before it would take 40 minutes to Check for Updates and load the app because for
    each request it had to wait for the connection to time out (900 seconds) before the next request could be made.
    Well thats what we found in our research. We were pulling our hair over this for nearly a week. Hope this helps.
    Thanks,
    Nathan

  • 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

Maybe you are looking for

  • Not able to use Scanner!

    My sister has an HP Deskjet 2050 printer. The printer is connected to a Macbook OS operating system 10.72. Recently she was not able to open the scanner using the HP software or scan anything. On clicking on Scanner nothing happens.  I reinstalled th

  • WLAN random disconnect after Belle update

    Hello, After updating the Nokia N8 to Nokia Belle, I have an issue with Wireless LAN: it randomly connects and disconnect, especially when I am on nokia store app or when downloading large amount of data. Any sugestion in solving the issue? Regards,

  • Camera Raw problem; images appearing soft and without definition on import

    Can anyone help? I am having problems with ACR version 4.6 ( I cannot upgrade ACR without upgrading to CS5). When I open a RAW image in ACR, the image appears soft, and with poor definition. As a result, they have failed quality control for upload to

  • E-63 - rebooting when trying to use the cell to co...

    Hi for some reason, i cannot use my e63 to connect my pc to the web. i am using Wi-fi, and i can surf the net on my phone. but when i connect it to my pc via the data cable my phone automatically restarts. i had already installed the modem applicatio

  • Use desformat=spreadsheet output excel,number fields can not right align

    overview and PDF right align,it's ok.but excel all field left align. why?