How to use Sun's JRE/JDK 1.6.0_10 java_version Parameter to Specify a Particular JRE with Multiple Versions on a PC [ID 758823.1]
Applies to:
Oracle Forms - Version: 10.1.2.3.0 to 10.1.2.3.0Information in this document applies to any platform.
Goal
How to use the Sun JRE parameter "java_version" parameter that is available with JRE 1.6.0_10 and above.Solution
Sun has created a new parameter for the JRE called java_version that can be used when you have multiple JRE versions on your PC
Version Selection Mechanisms
The new Java Plug-In (1.6.0_10 and above) provides a new platform. and browser-independent mechanism for selecting a JRE version upon which to launch an applet: the java_version applet parameter. This new parameter supports:
Selection of the latest JRE version from within a particular JRE family ("1.5*")
Selection of a particular JRE family or the latest version on a particular PC ("1.5+")
Additional information about this parameter may be seen at
java_version parameter
Examples with Forms
The following examples assume you have JRE 1.6.0_11, JRE 1.5.0_12 and JRE 1.5.0_17 on your PC.
1. Modify the ORACLE_HOME/forms/server/basejpi.htm to include the new "java_version" parameter. For example add the following to the basejpi.htm:
Add the following to the
java_version="%java_version%"
Note: If using webutil, add this to webutiljpi.htm.
2. Add the following to the ORACLE_HOME/forms/server/formsweb.cfg
java_version=1.5.0_12
#java_version=1.6+
#java_version=1.5*
baseHTMLJInitiator=basejpi.htm
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
jpi_mimetype=application/x-java-applet;version=1.6
jpi_download_page=http://java.sun.com/javase/downloads/index.jsp
jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6u16-windows-i586.cab#Version=1,6,0,16
With the two java_version parameters commented out as above, JRE 1.5.0_12 will be used since it is specified.
If you wished to use the latest 1.5.0_X version on the PC (in this case 1.5.0_17) you could comment out all the java_version tags except for "java_version=1.5*"
If you wished to use the latest JRE on the PC - in this case, 1.6.0_11 - then you would comment out all java_version tags except for "java_version=1.6+"
For the Mozilla family of browsers such as Firefox, you can specify to use the latest version of 1.6.0_X on your machine with the jpi_mimetype parameter as specified above. This feature in Firefox does not work as of 3.5.5. A firefox bug has been created. Additional information may be obtained at
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6452817
Additionally, refer to the Classid Attribute in the IE section of the document for a better explanation of how it can be used:
Classid Attribute
<> FOLDER:ST.Middleware.Developer.Forms.Generic TOPIC:Web Deployment DOCUMENT-ID:758823.1 ALIAS: SOURCE:AWIZ 7259473.993 DOCUMENT-TYPE:HOWTO ZCXTECH TITLE:How to use Sun's JRE/JDK 1.6.0_10 java_version Parameter to Specify a Particular JRE with Multiple Versions on a PC IMPACT:LOW SKILL-LEVEL:NOVICE STATUS:PUBLISHED DISTRIBUTION:EXTERNAL ZCXPUBLIC ZCXCURRENT AUTHOR:MAJORDAN.US AUTHOR:MMULLENN.US PRODID-45 COMPONENT:FORMS MINVER:10.1.2.3.0 MAXVER:10.1.2.3.0 PORTID-0 FDRSEG-582 FDRSEG-583 FDRSEG-579 FDRSEG-557 FDRSEG-465
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7865774/viewspace-622734/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7865774/viewspace-622734/