首页 > Linux操作系统 > Linux操作系统 > use Sun's JRE/JDK 1.6 Parameter to Specify a Particular JRE with Multiple
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:
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:
Note: If using webutil, add this to webutiljpi.htm.
2. Add the following to the ORACLE_HOME/forms/server/formsweb.cfg
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
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7865774/viewspace-622734/ ,如需转载,请注明出处,否则将追究法律责任。