如果应用比较新的java bean,就会出现错误:
java.lang.UnsupportedClassVersionError:oracle/forms/gp/FileDropBean (Unsupported major.minor version 48.0)
是因为使用高版本的JDK编译的Java class文件试图在低版本的JVM上运行。目前使用最广泛的还是JDk1.4.很多软件和项目无法使用JDk1.5。
需要将Form builder10g 升级到JDK1.6。
1、下载安装1.6.0.22版本
2、Formsweb.cfg文件中
Sun JRE
Modify the following settings to use a JREversion different from the default if 1.4.2. The following JRE changes instruct the FormsRuntime to use the JRE version 1.6.0 update 22 (1.6.0_22). The following settings are all found in the[default] configuration section.
# System parameter: base HTML file for usewith JInitiator client
# baseHTMLjinitiator=basejini.htm
baseHTMLjinitiator=basejpi.htm
##表示使用java虚拟机
Oracle Forms is hardwired (so to speak) touse the Oracle Jinitiator. Therefore, to instruct the Forms Runtime to use theJRE without passing a URL query string parameter, it is recommended you changethe “baseHTMLinitiator” parameter to point to the Java Plug-In (JPI) html file.You could also expand the existing [jpi] section and instruct the Forms runtimeto use this configuration in the URL. Personally, I find this to be the easiersolution.
# Page displayed to users to allow them todownload Sun's Java Plugin.
# Sun's Java Plugin is typically used fornon-Windows clients.
# (NOTE: you should check this page andpossibly change the settings)
# Original setting
#jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
# New – points to the generic ( non-versionspecific) JRE download web site
jpi_download_page=http://www.oracle.com/technetwork/java/javase/downloads/index.html
# Parameter related to the version of theJava Plugin
# Original setting
#jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
# This setting is specific to JRE 1.6.0_22
jpi_classid=clsid:CAFEEFAC-0016-0000-0022-ABCDEFFEDCBA
# Optional – Generic to any version of JRE 1.6.0. Note the difference between these twosettings.
jpi_classid=clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA
# Parameter related to the version of theJava Plugin
# Original setting
#jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
# New – specific to JRE 1.6.0_22
jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,22
# Optional – Generic to JRE 1.6.0
jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0
# Parameter related to the version of theJava Plugin
# Original Setting
#jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
# New – specific to JRE 1.6.0_22
jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_22
# Optional – Generic to JRE 1.6.0
jpi_mimetype=application/x-java-applet;jpi-version=1.6.0
Oracle Jinitiator
Modify the following settings to use aJinitiator version different from the default if 1.3.1.26. There are no optional settings for Jinitiator.
# Page displayed to Netscape users to allowthem to download Oracle JInitiator.
# Oracle JInitiator is used with Windowsclients.
# If you create your own page, you shouldset this parameter to point to it.
#jinit_download_page=/forms/jinitiator/us/jinit_download.htm
# Parameter related to the version ofJInitiator
jinit_classid=clsid:CAFECAFE-0013-0001-0026-ABCDEFABCDEF
jinit_classid=clsid:CAFECAFE-0013-0001-0028-ABCDEFABCDEF
# Parameter related to the version ofJInitiator
# jinit_exename=jinit.exe#Version=1,3,1,26
jinit_exename=jinit.exe#Version=1,3,1,28
# Parameter related to the version ofJInitiator
#jinit_mimetype=application/x-jinit-applet;version=1.3.1.26
jinit_mimetype=application/x-jinit-applet;version=1.3.1.28
[webutil]
#baseHTMLjinitiator=webutiljini.htm
baseHTMLjinitiator=webutiljpi.htm ##表示使用jav虚拟机