问题描述
我已经在计算机上安装了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
具有用于所用Java主页的条目.
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:\sqldev\sqldeveloper\bin
下)
(So, on Windows, if you have unzipped SQLDeveloper to C:\sqldev
then sqldeveloper.conf
is under C:\sqldev\sqldeveloper\bin
)
类似的东西:
SetJavaHome C:\Program Files\Java\jdk1.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!