Auto detect missing java plugin with Netscape

How do I get Netscape to automatically detect that it is missing the Java Plugin, and go to Sun's download page? I have IE 5.5 and Netscape 7 installed.
My html looks like this:
<OBJECT
classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase = "http://java.sun.com/products/plugin/1.4/jinstall-1_4-windows-i586.cab#Version=1,4,1,0"
WIDTH = "100%" HEIGHT = "500" >
<PARAM NAME = CODE VALUE = "nz.astarte.planwise.gantt.GanttApplet" >
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME = ARCHIVE VALUE = "pwgantt.jar" >
<PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4">
<PARAM NAME = "scriptable" VALUE = "false">
<PARAM NAME = "projectId" VALUE="<%=theForm.getProjectId().toString()%>" >
<PARAM NAME = "userId" VALUE="<%=userId%>" >
<PARAM NAME = "logLevel" VALUE="INFO" >
<COMMENT>
<EMBED
type = "application/x-java-applet;version=1.4"
CODE = "nz.astarte.planwise.gantt.GanttApplet"
JAVA_CODEBASE = "."
ARCHIVE = "pwgantt.jar"
WIDTH = "100%"
HEIGHT = "500"
projectId ="<%=theForm.getProjectId().toString()%>"
userId ="<%=userId%>"
logLevel ="INFO"
scriptable = false
pluginspage = "http://java.sun.com/getjava ">
<NOEMBED>
Could not find a plugin supported by your browser. Please download Sun's Java Plugin 1.4.1
</NOEMBED>
</EMBED>
</COMMENT>
</OBJECT>
IE will autodetect and begin the download process. I know Netscape doesn't auto download, but it should at least detect it needs the plugin and go to the http://java.sun.com/getjava page so the user can do a manual download. However all I get is a big black blob where my applet should be.
Thanks in advance,
Andrew

I have modified your EMBED tag a little bit. I think it should work:
<EMBED
type="application/x-java-applet;jpi-version=1.4.1"
CODE="nz.astarte.planwise.gantt.GanttApplet"
CODEBASE="."
ARCHIVE="pwgantt.jar"
WIDTH="100%"
HEIGHT="500"
projectId="<%=theForm.getProjectId().toString()%>"
userId="<%=userId%>"
logLevel="INFO"
scriptable=false
pluginspage="http://java.sun.com/j2se/1.4.1/download.html">
<NOEMBED>
Could not find a plugin supported by your browser. Please download Sun's Java Plugin 1.4.1
</noembed>
</embed>
Hope it helps!
A.A.
How do I get Netscape to automatically detect that it
is missing the Java Plugin, and go to Sun's download
page? I have IE 5.5 and Netscape 7 installed.
My html looks like this:
<OBJECT
classid =
d = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase =
e =
"http://java.sun.com/products/plugin/1.4/jinstall-1_4-w
ndows-i586.cab#Version=1,4,1,0"
WIDTH = "100%" HEIGHT = "500" >
<PARAM NAME = CODE VALUE =
E = "nz.astarte.planwise.gantt.GanttApplet" >
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME = ARCHIVE VALUE = "pwgantt.jar" >
<PARAM NAME = "type" VALUE =
E = "application/x-java-applet;version=1.4">
<PARAM NAME = "scriptable" VALUE = "false">
<PARAM NAME = "projectId"
Id" VALUE="<%=theForm.getProjectId().toString()%>" >
<PARAM NAME = "userId" VALUE="<%=userId%>" >
<PARAM NAME = "logLevel" VALUE="INFO" >
<COMMENT>
<EMBED
type =
type = "application/x-java-applet;version=1.4"
CODE =
CODE = "nz.astarte.planwise.gantt.GanttApplet"
JAVA_CODEBASE = "."
ARCHIVE = "pwgantt.jar"
WIDTH = "100%"
HEIGHT = "500"
projectId
projectId ="<%=theForm.getProjectId().toString()%>"
userId ="<%=userId%>"
logLevel ="INFO"
scriptable = false
pluginspage = "http://java.sun.com/getjava ">
<NOEMBED>
Could not find a plugin supported by your
ted by your browser. Please download Sun's Java Plugin
1.4.1
</noembed>
</embed>
</COMMENT>
</object>
IE will autodetect and begin the download process. I
know Netscape doesn't auto download, but it should at
least detect it needs the plugin and go to the
http://java.sun.com/getjava page so the user can do a
manual download. However all I get is a big black blob
where my applet should be.
Thanks in advance,
Andrew

Similar Messages

  • Memory Leak Java Plugin with Swing Applet

    Hi
    I experience the following problem and desperately need help on this. The Java Plugin (I use Version 1.3.1_02) seems to have a problem in printing Swing Applets.
    The problem can easily be reproduced (at least with NT):
    1) Start Internet Explorer or Netscape (I used 5.5/4.07)
    2) Launch the following demo swing applet
    http://java.sun.com/products/plugin/1.3.1_01a/demos/jfc/SwingSet2/SwingSet2Plugin.html
    3) Print the applet and observe (using task manager) the memory used by the browser process (the memory used by the process will increase every time you hit the print button but never decrease unless you shut down the browser)
    4) Print a couple of times (you may want to pause your print queue) and you will be able to crash your computer
    This seems to be the same bug reported with 4638742. However it says "in progress" for quite some time and I was wondering if some genious might know a work around for this.
    Cheers

    You might want to read an article about memory leaks in Java:
    http://www-106.ibm.com/developerworks/library/j-leaks/

  • I am using Mandriva Linux now and I have installed Firefox 6 but I could not install Java plugin with it. Can anyone please help me how to install it?

    I am using Mandriva Linux now.
    But I am using Firefox 3.6.8, but I cannot install java plugin in it.
    Can anyone please help me how to install it?

    The plugins folder in the Firefox installation folder doesn't exist by default. There is no default plugin in Firefox 4, so that folder would be empty and in thus not included. If you want to use that location then you need to create a plugins folder.
    Did you try /usr/lib/mozilla/plugins ?

  • Getting java plugin with j2eesdk

    I download and install Java 2 Platform, Enterprise Edition 1.4 SDK Update 1 and I don't get Java plugin in IE. If I install j2sdk-1_4_2_04-windows-i586-p.exe i can install Java runtime public and get Java plugin.
    Why it is so?

    I download and install Java 2 Platform, Enterprise
    Edition 1.4 SDK Update 1 and I don't get Java plugin
    in IE. If I install j2sdk-1_4_2_04-windows-i586-p.exe
    i can install Java runtime public and get Java plugin.
    Why it is so?Because J2EE != (J2SE + more stuff). It's a different thingy.

  • Missing Java Plugin?

    Hi,
    I am new to Java, so be kind :) I create virtual tours using Java, and have run into a common. Since Windows XP no longer includes Java as a default, this has created some confusion for users. I would like to include a Java code that could detect whether the user has the Java plug-in or not. If the plug-in is missing then direct them to the Java site for the download. I have tried talking to Java about this concern and have not been able to find someone who can help.
    Thank you in advance for your help!
    Jennie

    You can accomplish this for applets by coding the html file that executes the applet. The instructions are in this document:
    http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/contents.htmlOr, by using Java WebStart, the entire process can be reduced to a single click. See
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/index.htmlBe warned, however, neither solution is simple.
    If a self-contained Java application is what is executed, with no Internet involvement, then you will have to create your own custom script to do the work. Most of the information needed is in the first reference.

  • Java Plugin with Netscape6

    After downloading and installing Netscape6, I tried to access a page with an applet. I downloaded the Plugin as directed. I Shut Down the PC, rebooted it, and still Netscape cannot find the Plugin. I have fought this for about a month in different ways. Can anyone tell me what I need to do?
    Thanks very much,
    Betty

    thanks for the tip it worked but I made a copy of the file named NPOJI600.dll from C:\Program Files\JavaSoft\JRE\1.3\bin and move it to C:\Program Files\Netscape\Netscape 6\Netscape 6\plugins it works now
    I also had a problem with the adobe plug-in to fix that make a copy of NPPDF32.dll in C:\adobe\acrobat 5.0\reader\browser and paste it to C:\Program Files\Netscape\Netscape 6\Netscape 6\plugins
    thanks again
    Chenz

  • Java Plugin With Client Cert Auth and Keepalive

    Hi,
    I have a Java Applet that connects to a site requiring client side certificates. The site is running Apache 2.0.54 with a keepalive timeout of 15 minutes. As a result the applet prompts the user for a client side certificate on its inital connection and does not prompt again unless the user has been idle for more than 15 minutes. My problem is that when we try this through our Squid proxy, the Applet prompts the user on virtually every request, making for a very annoying user experience.
    We have played with both Squid 2.4 and 3.0 and tweaked serveral promising-sounding parameters with no success. Is there something I am missing? I can mail any logs or config files as needed. One clue is that it does seem to work for requests spaced at about 2 seconds or so apart, but not more.
    Thanks for any insights as to what might be happening here.
    Best,
    Seth

    Issue resolved by creating a role with the relevant UME Action permissions. Not entirely sure if this is the best way forward, but it seems to work.
    If anyone has other suggestions, or better ways of doing this, please let me know.
    Thanks

  • Missing javai.dll with jdk1.3, 4.5.1, sp13

    Now that Java 2 JDK1.3.0 with hotspot is supported for 4.5.1
    (http://www.weblogic.com/platforms/index.html#winnt), I thought I would
    give it a try. I am using Weblogic 4.5.1 with SP13, and NT 4.0.
    When I start the server I get the following dialog box at the end of the
    startup process:
    java.exe - Unable To Locate DLL
    The dynamic link library javai.dll could not be found int the specified
    path
    c:\jdk1.3\bin;.;C:\WINNT\System32;C\WINNT\system
    OK
    Actually it's not OK, but since I had no choice I pressed it. Then I get
    the following error with stack trace:
    Mon Dec 04 18:59:43 PST 2000:<E> <SocketMuxer> Unable to load native
    socket muxe
    r, using Java muxer
    Mon Dec 04 18:59:43 PST 2000:<E> <SocketMuxer>
    java.lang.UnsatisfiedLinkError: C
    :\weblogic_romeo\bin\wlntio.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at weblogic.socket.NTSocketMuxer.<init>(NTSocketMuxer.java:149)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at
    weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:176)
    at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:140)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:257)
    I suspect the problem may be that the system checks to see if it is
    running jdk1.2, if it is it, trys to load wlntio_jdk12.dll. If it is not
    running jdk1.2 (like in my case where it is running jdk1.3), it assumes
    that it is running jdk1.1 and loads wlntio.dll which looks for
    javai.dll.
    Has anyone else had this problem, or has anyone sucessfully used jdk1.3
    with 4.5.1?
    Thanks,
    Carles

    We were given a patch (CR038329) a week ago and it appears to resolve this
    for 4.5.1 sp13. They should be noting the need for this patch on the
    platform page. Anyone know if there's an equivalent patch for 4.5.2? (and
    will the fix be included in sp2?)
    "Joe Herbers" <[email protected]> wrote in message
    news:[email protected]...
    Yes, I've seen exactly this for months. We started trying 1.3 with 4.5
    before they certified it and I saw this problem. I mentioned it to them
    when they said they were working on certification, but apparently they
    didn't notice. When they announced the certification, I pointed it out
    again and they saw it as well. So I opened case 202537 (Problem with
    WebLogic 4.5.1 and JDK 1.3 with native IO) to track this. The current
    status is "Awaiting Patch". The following is from Nov. 20
    "It looks like this issue has been assigned to an engineer. The fix is
    "non-trivial" which means it may take some time to fix--but at the same
    time, keep in mind that the issue has been marked with the highest priority
    possible and we will work hard to get this resolved. I'll keep you updated."
    "Carles Pi-Sunyer" <[email protected]> wrote in message
    news:[email protected]...
    Now that Java 2 JDK1.3.0 with hotspot is supported for 4.5.1
    (http://www.weblogic.com/platforms/index.html#winnt), I thought I would
    give it a try. I am using Weblogic 4.5.1 with SP13, and NT 4.0.
    When I start the server I get the following dialog box at the end of the
    startup process:
    java.exe - Unable To Locate DLL
    The dynamic link library javai.dll could not be found int the specified
    path
    c:\jdk1.3\bin;.;C:\WINNT\System32;C\WINNT\system
    OK
    Actually it's not OK, but since I had no choice I pressed it. Then I get
    the following error with stack trace:
    Mon Dec 04 18:59:43 PST 2000:<E> <SocketMuxer> Unable to load native
    socket muxe
    r, using Java muxer
    Mon Dec 04 18:59:43 PST 2000:<E> <SocketMuxer>
    java.lang.UnsatisfiedLinkError: C
    :\weblogic_romeo\bin\wlntio.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at weblogic.socket.NTSocketMuxer.<init>(NTSocketMuxer.java:149)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at
    weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:176)
    at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:140)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:257)
    I suspect the problem may be that the system checks to see if it is
    running jdk1.2, if it is it, trys to load wlntio_jdk12.dll. If it is not
    running jdk1.2 (like in my case where it is running jdk1.3), it assumes
    that it is running jdk1.1 and loads wlntio.dll which looks for
    javai.dll.
    Has anyone else had this problem, or has anyone sucessfully used jdk1.3
    with 4.5.1?
    Thanks,
    Carles

  • Java Applets in Netscape with EMBED   tag

    Hi,
    I tried to run the examples on the:
    http://192.9.48.9/products/plugin/1.3/demos/applets.html
    Demo paged off of the plug page and in Netscape 4.08 it
    does not know there is a plugin , in Netscape 6.0
    it knows there is a plug in but won't use the one installed on the machine (1.3.1) which is the same level as the demo.
    Any clues how to get applets to use the Java Plugin with Netscape? This works fine in IE
    Thanks!
    BTW- I'm using NT 4.0 os.

    Probably 1.3.1 conflicts with 1.3.1_01 or 1.3.1_02.
    You need the HTML Converter from the Java PlugIn download page to make your page ready for Netscape 4.x. Go to http://java.sun.com/products/plugin/1.3/converter.html (Java Plug-in HTML Converter Download) to download your copy of the HTML Converter. Watch for the current version, it is 1.3, not 1.1.1.
    Download your page, strip out the <embed/> and <object/> elements, uncomment the <applet/> element and run the HTML Converter.
    Additional Information:
    Netscape 6 does not use the <embed/> element anymore since it isn't a html element but was a proprietary netscape tag. Netscape 6 uses the <object/> element like Internet Explorer and Opera.
    Another note on <embed/>:
    Use of <embed/> is strongly discouraged, but there's no other chance. Let's hope support for Netscape 4.x won't be neccessary any more in a few months.
    A note on <applet/>:
    The <applet/> element is deprecated since HTML 4.01 or earlier (http://www.w3.org/TR/html401/struct/objects.html Objects in HTML 4). One should use the <object> element instead anyway. The semantic description of html elements found in the technical report of the html 4.01 recommendation is still valid for current html versions of today (XHTML 1.1 and XHTML Basic 1.0).
    There's also a funny page of Sun about HTML: http://java.sun.com/products/plugin/1.3/docs/tags.html. Don't take that page too serious since it states it is talking about HTML, but it isn't.
    If you use the HTML Converter, be sure to use the Extended (Standard + All Browsers/Platforms) template to tell Netscape, Opera and Internet Explorer regardless of the used version to display the applet correctly. But watch out: the generated code is not HTML and will perhaps even crash your page in Internet Explorer 6 and browsers that rely on the HTML standard! It also won't work with Netscape 6 if there is a different version of the Java Plugin installed more recently than the requested. I have SDK 1.3, 1.3.1 and 1.4 installed, and Netscape 6 wants to download the 1.3.1 Plugin.
    The best way to make your applet work in really every browser is to study what the converter is trying to do and code it by yourself in a conformant way. Be sure not to tell the browser the Plugin version to use to avoid the neccessarity of downloading outdated plugins and installing several plugins (1.2, 1.2.1, 1.2.2, 1.3, 1.3.1, 1.3.1_01, 1.3.1_02, 1.4...).

  • Problem installing java plugin from jre 1.4.0 on netscape 4.79

    We tried to install the newest java plugin on netscape
    4.79 on our Solaris 2.8 machine. Followed the instruction, we first downloaded j2re-1_4_0-solsparc.sh, ran the script to create a
    directory called j2re1.4.0, then set the NPX_PLUGIN_PATH environment variable to the directory
    containing the javaplugin.so file. When we tried to
    start netscape, we got the following error message:
    INTERNAL ERROR on Browser End: Could not load the function CreateOJIFactory
    System error?:: No such file or directory
    What is the problem? Any fix?
    Thanks

    Hi,
    From your description, it seems you've read http://java.sun.com/j2se/1.4/install-solaris.html#plugin . This also states that the supported Netscape builds go up to 4.77 before moving on to Netscape 6.x. And in this case it appears that this isn't just because the documentation hasn't kept up with recent activity from Netscape. Netscape 4.79 appears to treat the plugin differently, and/or still expect the old Activator code to be in place to use it.
    I'm using the 1.4.0 JRE with no trouble at all with Netscape 7.0PR1. If anything this - and the Mozilla 1.0RC2 build that it's based on - are far more stable than any of the NS4.x releases. The only reason I can see for staying with 4.x is that it'd little more lax with the HTML it reads, and displays some bad pages that NS6/7 refuses to display.
    Recent Solaris releases come with Netscape 6 as well, and it's easily downloadable. I'm sorry I can't be more help than this.
    Mark Bowyer.
    Sun Developer Technical Support.

  • Java 1.8.0_31 for Solaris Sparc missing Firefox plugin

    Until now I didn't realize that Oracle planned to deprecate (Oracle) Solaris in favor of Linux.
    Since updates to Java 7 will be ending in April 2015, I thought it would be a good idea to migrate to Java 8.  I installed Java 1.8.0_31 on our Solaris 10 server and then tried to configure the Java plugin for Firefox.  Low and behold!  It is no longer supplied with the Java installation.  Apparently, when Oracle removed 32-bit support for java in Solaris, they removed Java Web Start (javaws.jar) and the Firefox plugin (libnpjp2.so) with it.  As I searched the web in vain for a solution, I recall that additional java functionality has been removed from the Java 8 build for Solaris as well, but I can't recall what they are right now.
    Of course, Linux remains fully supported!!  Too bad we invested in an all-Oracle solution for our aging Oracle Forms applications.  I guess now we need to stay on Java 7 until we can migrate off the high performance (Oracle) Solaris dinosaur to a better supported Linux platform.  Thanks Oracle for providing no risk solutions.
    I've submitted a ticket to Oracle Support regarding how to get past this issue, but I thought I'd throw it out here too:
    How can I run a java app (like Oracle Forms) using Firefox on Solaris without a Java plugin?

    Obviously Sun (excuse me, Oracle) does not intend to support the solaris-10/sparc/firefox-3.6 combination. Firefox 3.6 requires the NPAPI and/or NPRuntime interfaces to java, but oracle does not provide the new "libnpjp2.so" java plugin with the jre-6u18-sparc-solaris java download.
    A search at www.oracle.com does not turn up any support announcement about this. You have to learn it the hard way. :(
    If you want to continue to use sparc-solaris, downgrade to firefox-3.5 so you can use the old libjavaplugin_oji.so module. Otherwise run Linux or Mac OS X to stay in the unix camp.

  • Gifs from a jar & Java Plugin

    I've a bunch of GIFs in an JAR that load perfectly when running in an application using the JRE. However when I try to run the same with the Java Plugin in Netscape or IE, some of the images show up incorrectly with white patches in 'em. Anyone else see this problem and know how to counter it?
    cheers
    -Ragu

    Well, as no one could answer my query, I probed it a bit and found out the reason:
    The gif's in the JAR are compressed by the default jar compression algorithm. This caused 'em to be corrupted (as gif's are themselves compressed, you can't compress 'em again safely - violates some basic law I've read about somewhere)
    So when adding gifs to the jar I deactivated compression by using
    jar u0f x.jar images
    That solves the problem.
    The jar command ought to be fixed to automatically not compress files with .gif extensions.
    cheers
    -Ragu

  • Java Plugin 1.3.1 on RedHat Linux 7.1

    I downloaded and installed the Java SDK 1.3.1 for linux.
    When I try to view an applet written in Netscape I get the following error message on the bottom left corner of the browser window:
    ClassdefError javax.japplet not found.
    However, I can see the applet in the appletviewer.
    In order to install the plugin I did the following:
    I removed the old plugin:
    rm -fr $Home/.netscape/.java
    rm $Home/.netscape/plugin/javaplugin.so
    Then, to install the plugin I set the netscape environment variable :
    export NPX_PLUGIN_Path = /usr/java/jdk1.3.1/jre/bin/plugin/ns4/javaplugin.so
    How can I tell whether the netscape 4.7 browser is using this plugin??
    Could someone please tell me what is causing the error?? Please be very specific, I am new to RH Linux.
    Thank You
    Mihir Chokshi
    email: [email protected]

    try to make a link to your java plugin from netscape plugin directory:
    cd your_netscape_dir/plugins
    ln -s /usr/java/jdk1.3.1/jre/bin/plugin/ns4/javaplugin.so try to fid netscape dir in /usr/lib/netscape/ or /usr/local/netscape ..
    Iulian

  • I am running 10.5.8, and just updated my java to java 5 update10. Now my firefox is missing the Java plugin, and I can't load any Java applet at all. When I try it with Safari, it hangs when certain Java applet loads. HELP!!!

    Suddenly my Java plugin is missing and i can't load any Java with Firefox at all, even though i have it enabled in the browser! i've tried loading in java embedding plugin, but it doesn't work. what should i do???

    It's not in Tools> Add-ons >plugins?  Should be Java Plug-in 2 for NPAPI browsers 13.5.0. What are you seeing there? I don't think it's called the embedding plugin any longer.
    Might try getting the Firefox 5 standalone application. Trash the current one and replace it. Doing this won't affect your Profile or any settings.
    http://www.mozilla.com/en-US/firefox/all.html
    If it's enabled, how can it be missing?
    If this doesn't work, ask here. No need to register. Make sure you put (Mac) in the title.
    http://forums.mozillazine.org/viewforum.php?f=38
    Message was edited by: WZZZ
    EDIT. Oops, may be different for 10.5.8. Was thinking recent Java update for 10.6. But try installing a new app anyway. In the past, this got me the latest Java plugin.

  • ANSWER: HOW TO DETECT Java Plugin from JavaScript

    I created a new topic because the questions about
    how to detect Java Plugin in browsers are scattered
    thoughout this forum.
    Basically you need to employ two approaches for IE and NS.
    In IE you need to try to instantiate a small applet
    (not your production applet) in order to see if browser
    can do it. if the browser can do it, you can make a
    call applet from JavaScript in order to find version of
    JRE (as well as a host of other things).
    In NS you can write a simple JavaScript which will
    interrogate the browser for all plugins installed. Then
    ypu can make a desicion whether to pass execution to
    the next(or generated) page which hosts your applet,
    or ask the user to download/install a plugin.
    I ecourage everybody to host a plugin on your site
    rather leave default link to it which is generated by
    html converter.
    In order to run sample,
    Prerequisites:
    Java Plugin 1.3.
    If you have a different version of plugin,
    substitute hardcoded plugin version in JavaScript for
    value that you have.
    1. compile java file
    2. put class file in the same directory with html file
    3. load html file into the browser.
    4. press "Check Java Plugin.." button
    5. see it work
    6. examine code
    7. uninstall plugin
    8. repeat steps 1 - 4
    9. see it work
    10. install plugin.
    Sample code follows:
    **********************HTML FILE BEGIN***********
    <HTML>
    <HEAD>
    <!-- Generated by Kawa IDE -->
    <TITLE>Detect Java Runtime</TITLE>
    </HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    var browsername;
    function doNetscape()
    for (i=0; i < navigator.plugins.length; i++)
    for (j = 0; j < navigator.plugins.length; j++)
    if(navigator.plugins[i][j].type == "application/x-java-applet;version=1.3")
    alert("You are running Netscape with Java Plugin 1.3.0 - OK");
    return;
    alert("You are running Netscape\nPlease, install Java Runtime Environment 1.3.0");
    function doMicrosoft()
    var applet = document.myApplet;
    if(applet == null)
    alert("You are running Microsoft Browser.\nPlease, install Java Runtime Environment 1.3.0");
    return;
    var version = applet.getJavaVersion();
    if(version == "1.3.0")
    alert("You are running IE, Java Plugin 1.3.0 installed - OK");
    else
    alert("You are running IE, other plugin installed - mybe OK if later that 1.3.0\nYour version: " + version);
    function getJava()
    var applet = document.myApplet;
    if(applet == null)
    alert("Please, install Java Runtime Environment");
    return;
         alert("JRE Version: " + document.myApplet.getJavaVersion());
    function checkJavaPlugin()
         browsername = navigator.appName;
         if(browsername.indexOf("Netscape")!= -1)
              browsername="NS";
              doNetscape();
         else
              if(browsername.indexOf("Microsoft")!=-1)
                   browsername="MSIE";
                   doMicrosoft();
              else
                   browsername="N/A";
                   alert("Unknown browser: " + browsername);
    </SCRIPT>
    <body>
    <Strong>Check Java Plugin</strong>
    <OBJECT id="myApplet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
         WIDTH = 1
         HEIGHT = 1 >
         <PARAM NAME = CODE VALUE = "DetectPluginApplet.class" >
         <PARAM NAME="scriptable" VALUE="true" >
         <embed type="application/x-java-applet;version=1.3"
              code = DetectPluginApplet width = 2 height = 2 MAYSCRIPT = "true" >
         </embed>
         </EMBED>
    </object>
    <FORM>
         <INPUT TYPE="button" value="Get Plugin Version in IE" onClick="getJava()">
         <INPUT TYPE="button" value="Check Java Plugin in NS and IE" onClick="javascript:checkJavaPlugin()">
    </FORM>
    </BODY>
    </HTML>
    **********************HTML FILE END***********
    ***************APPLET FILE BEGIN***********
    import java.awt.*;
    public class DetectPluginApplet extends java.applet.Applet
         public void init()
              add(new Label("DetectPluginApplet"));
    public String getJavaVersion()
    return System.getProperty("java.version");
    **************APPLLET FILE END************

    Try following java script, it works on new browsers (NS 4+, IE5+). For IE you have to enable 'ActiveX objects creation' in security options.
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
    && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
    && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.0") !=-1));
    var is_ie5up = (is_ie && (is_major == 4)
    && ( (agt.indexOf("msie 5.0")!=-1)
    || (agt.indexOf("msie 5.5")!=-1)
    || (agt.indexOf("msie 6.0")!=-1) ) );
    var pluginDetected = false;
    var activeXDisabled = false;
    // we can check for plugin existence only when browser is 'is_ie5up' or 'is_nav4up'
    if(is_nav4up) {
    // Refresh 'navigator.plugins' to get newly installed plugins.
    // Use 'navigator.plugins.refresh(false)' to refresh plugins
    // without refreshing open documents (browser windows)
    if(navigator.plugins) {
    navigator.plugins.refresh(false);
    // check for Java plugin in installed plugins
    if(navigator.mimeTypes) {
    for (i=0; i < navigator.mimeTypes.length; i++) {
    if( (navigator.mimeTypes[ i].type != null)
    && (navigator.mimeTypes[ i].type.indexOf(
    "application/x-java-applet;jpi-version=1.3") != -1) ) {
    pluginDetected = true;
    break;
    } else if (is_ie5up) {
    var javaVersion;
    var shell;
    try {
    // Create WSH(WindowsScriptHost) shell, available on Windows only
    shell = new ActiveXObject("WScript.Shell");
    if (shell != null) {
    // Read JRE version from Window Registry
    try {
    javaVersion = shell.regRead("HKEY_LOCAL_MACHINE\\Software\\JavaSoft\\Java Runtime Environment\\CurrentVersion");
    } catch(e) {
    // handle exceptions raised by 'shell.regRead(...)' here
    // so that the outer try-catch block would receive only
    // exceptions raised by 'shell = new ActiveXObject(...)'
    } catch(e) {
    // Creating ActiveX controls thru script is disabled
    // in InternetExplorer security options
    // To enable it:
    // a. Go to the 'Tools --> Internet Options' menu
    // b. Select the 'Security' tab
    // c. Select zone (Internet/Intranet)
    // d. Click the 'Custom Level..' button which will display the
    // 'Security Settings' window.
    // e. Enable the option 'Initialize and script ActiveX controls
    // not marked as safe'
    activeXDisabled = true;
    // Check whether we got required (1.3+) Java Plugin
    if ( (javaVersion != null) && (javaVersion.indexOf("1.3") != -1) ) {
    pluginDetected = true;
    if (pluginDetected) {
    // show applet page
    } else if (confirm("Java Plugin 1.3+ not found, Do you want to download it?")) {
    // show install page
    } else {
    // show error page
    }

Maybe you are looking for

  • Passing value from ADF to BPEL, and to PL/SQL

    1. I have created BPEL which take 2 inputs and concatenate them. 2. have created a PL/SQL procedure for invoking this BPEL( working fine). Now i need to create a simple ADF page which contain 2 text box, 2 for input and 1 for result(concatenate), thi

  • "missing return statement" error code

    well... i feel like such a n00b... I can't seem to figure out what the problem is with my code, if someone could help me, that would be great. I get an error saying 'missing return statement'. I know that I have some things in here that I don't need

  • Sql query efficiency problem.

    Hello, I have a table - Users: | id | name | manager_id | The manager_id references the User.id, I need to find an employee by an id or name and this employee has to be a manager to someone else. Creating a sub-select that checks if employee's id is

  • If you ever decide to cancel your service

    Things to keep in mind if you ever decide to call in to cancel. Disconnections are now on the scorecard for representatives and there are incentives to cancel as few lines as possible.. In fact canceling too many lines in one month could effect how m

  • My iPad has been stuck on the apple loge for almost 10 hrs after trying to update, how can this be fixed?

    my iPad has been stuck on the apple loge for almost 10 hrs after trying to update, how can this be fixed?