Java oracle jinitiator版本过低请安装1.1.8.2或更高版本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23537022/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 23:42:52  来源:igfitidea点击:

oracle jinitiator version too low please install version 1.1.8.2 or higher

javaformsoracle

提问by user26442

I have java 1.7.0_55 and Jinitiator higher than 1.1.8.2 but still I am getting the error message mentioned above , I searched and found this site https://blogs.oracle.com/ptian/entry/solution_for_error_frm_92095which says

我有 java 1.7.0_55 和高于 1.1.8.2 的 Jinitiator 但我仍然收到上面提到的错误消息,我搜索并找到了这个网站 https://blogs.oracle.com/ptian/entry/solution_for_error_frm_92095

This is a workaround solution, For Window 7 user, Add a OS Parameter: JAVA_TOOL_OPTIONS, and parameter value is: -Djava.vendor="Sun Microsystems Inc."

这是一个变通的解决方案,对于 Window 7 用户,添加操作系统参数:JAVA_TOOL_OPTIONS,参数值为:-Djava.vendor="Sun Microsystems Inc."

but how can I do that , i.e. how can Add a OS Parameter: JAVA_TOOL_OPTIONS ?

但是我该怎么做,即如何添加操作系统参数:JAVA_TOOL_OPTIONS?

回答by Keith Greenberg

We resolved this by setting the parameter as a system environment variable on each client machine, as follows :

我们通过将参数设置为每台客户端机器上的系统环境变量来解决这个问题,如下所示:

  • Ensure that all browser windows are closed.

  • Access the Advanced System settings from the Control Panel.

    • On a Windows 7 client machine, this is done as follows : Navigate to the Control Panel, select the System item, select the Advanced system settings option.

    • On a Windows XP client machine, this is done as follows : Navigate to the Control Panel, locate and open the System item, in the System Properties dialog, navigate to the Advanced tab.

  • Select the Environment Variables button.

  • Go through both the User variables box and the System variables box, looking for an existing variable called JAVA_TOOL_OPTIONS.

  • Assuming no existing JAVA_TOOL_OPTIONS variable is found, select the New button in the System variables block, at the bottom of the screen.

  • In the resultant New System Variable dialog, create a new variable with the following information:

  • 确保关闭所有浏览器窗口。

  • 从控制面板访问高级系统设置。

    • 在 Windows 7 客户端机器上,这是按如下方式完成的:导航到控制面板,选择系统项目,选择高级系统设置选项。

    • 在 Windows XP 客户端机器上,这是按如下方式完成的:导航到控制面板,找到并打开系统项,在系统属性对话框中,导航到高级选项卡。

  • 选择环境变量按钮。

  • 浏览用户变量框和系统变量框,查找名为 JAVA_TOOL_OPTIONS 的现有变量。

  • 假设没有找到现有的 JAVA_TOOL_OPTIONS 变量,在屏幕底部的 System variables 块中选择 New 按钮。

  • 在生成的 New System Variable 对话框中,使用以下信息创建一个新变量:

Variable name  : JAVA_TOOL_OPTIONS
Variable value : -Djava.vendor="New Oracle"

(Note the leading hyphen "-" in the value)

(注意值中的前导连字符“-”)

  • Select the OK button in the Environment Variables dialog, then the OK button in the System Properties dialog to save this change.
  • 选择“环境变量”对话框中的“确定”按钮,然后选择“系统属性”对话框中的“确定”按钮以保存此更改。

This works by changing the vendor information for Java from Oracle to anything else; we used the string "New Oracle" to avoid confusion; you can use the "Sun Microsystems Inc." string too.

这是通过将 Java 的供应商信息从 Oracle 更改为其他任何信息来实现的;我们使用字符串“New Oracle”来避免混淆;您可以使用“Sun Microsystems Inc.” 字符串也是。

This then stops the Java code in Forms 10g (specifically, the FRMALL.JAR server-side package, I believe) from thinking that the Java client is an older version of JInitiator, which is no longer supported - hence the confusing message.

这会阻止 Forms 10g 中的 Java 代码(特别是 FRMALL.JAR 服务器端包,我相信)认为 Java 客户端是旧版本的 JInitiator,不再受支持 - 因此会产生令人困惑的消息。

Note that this problem does not occur in Oracle Forms 11g, as the relevant JAR package has been updated. However, you can run Oracle Forms 11g systems with this workaround in place.

请注意,此问题在 Oracle Forms 11g 中不会发生,因为相关的 JAR 包已更新。但是,您可以使用此变通方法运行 Oracle Forms 11g 系统。

Hope that that helps,

希望有帮助,

Cheers,

干杯,

Keith

基思