IntroductionJava Plug-in is a software product from Sun Microsystems, Inc. that allows web page authors to direct Java applets or JavaBeans on their intranet web pages to run using Sun's Java 2 Runtime Environment, Standard Edition (JRE). Java Plug-in is for enterprise customers who wish to deploy Java 2 SDK, Standard Edition v 1.3-based applets on their intranet web pages, and who also support both Windows-based and Solaris-based browsers in their enterprise. This will allow developers to develop and deploy applets with full support for all of the features and capabilities of Java 2 SDK, Standard Edition v 1.3 (such as JFC, Java2D) and have confidence that they will run as expected in IE and Navigator. This document specifies the steps that are necessary for deploying Java Plug-in in intranet environments. How Java Plug-in WorksJava Plug-in does not replace the underlying virtual machine. Rather, it enables web page authors to use Sun's JRE instead of the default VM. This ensures enterprise developers that Java 2 SDK, Standard Edition v 1.3-based applets are executed with full support for all of the features and capabilities of Java 2 SDK, Standard Edition v 1.3 (such as JFC, Java2D) in Microsoft's IE 4.0 or later, and Netscape's Navigator 4.0 or later on various Win32 platforms as well as on Solaris and Linux platforms. Internet Explorer: Java Plug-in uses Internet Explorer's extension mechanisms to allow Sun's JRE to run inside Internet Explorer. The technology used to achieve this is Microsoft's COM/ActiveX. Using the HTML <OBJECT> tag, web page authors can run ActiveX controls or COM components as part of a web page. IE provides elaborate mechanisms for downloading and caching ActiveX controls that make it possible for the web browser to use Sun's JRE with minimal user intervention. Netscape Navigator: Java Plug-in uses Navigator's plug-in architecture to allow Sun's JRE to run inside Navigator, much like running QuickTime movies or Shockwave animations with plug-ins. Using the HTML <EMBED> tag, web page authors can run plug-ins as part of a web page. This makes it possible for the web browser to use Sun's JRE in Navigator. To utilize all of the features and capabilities of Java 2 SDK, Standard Edition v 1.3 in IE or Navigator, web page authors must specify the use of Sun's JRE via Java Plug-in. Authors must modify their web pages to invoke Sun's JRE. Sun provides a written specification to guide web page authors on how to make these changes. In addition, Sun provides the Java Plug-in HTML Converter free of charge. This converter will automatically make the necessary changes to a selected set of HTML pages. Deploying Java Plug-in with Internet Explorer (IE)To deploy the Java Plug-in in intranet environments with IE, web page authors must convert the <APPLET> tags in the HTML file to <OBJECT> tags. The actual mapping between the <APPLET> tag and the <OBJECT> tag is specified in the Java Plug-in HTML Specification from Sun Microsystems. Here is an example: Original APPLET tag:
New OBJECT tag:
To deploy Java Plug-in in intranet environments with IE, you need to download and store the Java Plug-in binary file on one of your web servers. Then you need to modify the codebase attribute inside the <OBJECT> tag in the HTML file. For example, if you want to use the Java Plug-in binary file in "http://javaweb.eng/plugin/", then you can specify the codebase attribute as "http://javaweb.eng/plugin/jre-1_3-win.exe#Version=1,3,0,0". Please note the version number in the URL. For Java Plug-in 1.3 (shown in the example), the version number is 1,3,0,0. This version number will change for each release. You are required to change the version number inside the <OBJECT> tag in the HTML file if you want to specify the newest release of Java Plug-in. The file jre-1_3-win.exe is the same binary file that you can download directly from the Java Software web site, and it is digitally signed with a VeriSign digital signature signed by "Sun Microsystems, Inc.". If you are using the Java Plug-in HTML Converter, you can simply change the conversion template file to specify the latest Plug-in version (the CabFileLocation variable) before the conversion. Please consult the README file in the Java Plug-in HTML Converter for information about modifying the conversion template. Once you implement these changes, when a machine that does not have Java Plug-in installed browses an HTML page with IE, IE will look into your predefined location (http://javaweb.eng/plugin in this case) and download Java Plug-in. Notice that there is no need to download Java Plug-in over the firewall if the web server is inside the intranet, or if your machine is not isolated inside the firewall. Deploying Java Plug-in with NavigatorTo deploy Java Plug-in in intranet environments with Navigator, web page authors must convert the <APPLET> tags in the HTML file to <EMBED> tags. The actual mapping between the <APPLET> tag and the <EMBED> tag is specified in the Java Plug-in HTML Specification from Sun Microsystems. Here is an example: Original APPLET tag: <APPLET code="XYZApp.class" codebase="html/" align="baseline" width="200" height="200"> <PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz"> No JDK 1.3 support for APPLET!! </APPLET> New EMBED tag:
To deploy Java Plug-in in intranet environments with
Navigator, you need to download and store the Java
Plug-in binary file on one of your web servers. Then you
need to set up a Java Plug-in Download page and modify
the pluginspage attribute in the EMBED tag to
refer to this page. The Download page should have options
to download different versions of Java Plug-in, such as
for Windows and Solaris. For example, if you have set up
the Java Plug-in Download page at "http://javaweb.eng/plugin/"
and the page is called plugin-install.html, you
can specify the pluginspage as "http://javaweb.eng/plugin/plugin-install.html".
If you are using the Java Plug-in HTML Converter, you can
simply change the conversion template file to specify
your download page (the NSFileLocation variable)
before the conversion. Please consult the README file in
the Java Plug-in HTML Converter for information about
modifying the conversion template. There is a working
example of the plugin installation page at http://java.sun.com/products/
Once you implement these changes, when a machine that does not have Java Plug-in installed browses an HTML page with Navigator, users will see a plugin-missing picture on the HTML page. When the user clicks on this picture, Navigator directs the user to your predefined Java Plug-in Download Page (http://javaweb.eng/plugin/plugin-install.html in this example). Notice that there is no need to download Java Plug-in over the firewall if the web server is inside the intranet, or if your machine is not isolated inside the firewall. Modifying HTML Files to Run in Any BrowserTo maximize the chance that your HTML pages display applets properly in any browser, you can combine OBJECT and EMBED tags in a single file. Because Internet Explorer ignores anything between COMMENT tags and Navigator doesn't recognize the OBJECT tag, the following is an example of converting an applet to run in any browser: Original APPLET tag: <APPLET code="XYZApp.class" codebase="html/" align="baseline" width="200" height="200"> <PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz"> No JDK 1.3 support for APPLET!! </APPLET> Combined OBJECT and EMBED tags:
ConclusionJava Plug-in can be deployed in an intranet environment. Once it is set up correctly, Java Plug-in can be downloaded and installed in the intranet without leaving the firewall. | ||||||||||
Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.
|
| ||||||||||||