问题描述
我已经在我的机器上安装了 Oracle 11g r2,当我打开 Oracle SQL Developer 时,它说:java 1.6.0_02 is not supported
并告诉我安装新的 java 版本.
I've installed Oracle 11g r2 to my machine and when I opened Oracle SQL Developer it says: java 1.6.0_02 is not supported
and telling me to install new java version.
然后我已经安装了JDK 1.6.0_27并在环境变量中设置了路径并再次运行Oracle SQL Developer,但出现了同样的错误.
Then I've installed JDK 1.6.0_27 and set the path in environment variables and run Oracle SQL Developer again, but the same error occurred.
如何更改 Oracle SQL Developer 的设置以将 1.6.0_27 识别为我的 SDK?
How can I change the settings for Oracle SQL Developer to recognize 1.6.0_27 as my SDK?
推荐答案
sqldeveloper.conf
在 SQLDeveloper 基目录中的 sqldeveloper/bin
下有一个 java home 的入口正在使用.
sqldeveloper.conf
under sqldeveloper/bin
in the SQLDeveloper base directory has an entry for the java home being used.
(因此,在 Windows 上,如果您已将 SQLDeveloper 解压缩到 C:sqldev
然后 sqldeveloper.conf
位于 C:sqldevsqldeveloperin
)
(So, on Windows, if you have unzipped SQLDeveloper to C:sqldev
then sqldeveloper.conf
is under C:sqldevsqldeveloperin
)
类似于:
SetJavaHome C:Program FilesJavajdk1.6.0_20
退出 SQLDeveloper,删除此条目并重新启动 SQLDeveloper.应该会提示您输入 Java 的位置.
Quit SQLDeveloper, remove this entry and relaunch SQLDeveloper. You should be prompted for the location of Java.
这篇关于如何更改 SQL Developer 的设置以正确识别当前版本的 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!