Java Oracle SqlDeveloper 找不到正确的 JDK
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22541060/
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
Oracle SqlDeveloper can not find correct JDK
提问by Spring
I'm trying to install Oracle SQLDeveloper4 on my windows7 machine.
我正在尝试在我的 windows7 机器上安装 Oracle SQLDeveloper4。
I set JAVA_HOME to point my jdk 1.7, I add to my PATH variable %JAVA_HOME%/bin. When I echo and java -version I can see it is Java 1.7 and when I echo I can see it is in the %PATH%
我设置 JAVA_HOME 指向我的 jdk 1.7,我添加到我的 PATH 变量 %JAVA_HOME%/bin。当我 echo 和 java -version 我可以看到它是 Java 1.7 时我可以看到它在 %PATH%
I even set it in its sqlDeveloper.conf file to point to my jdk1.7;
我什至在它的 sqlDeveloper.conf 文件中设置它指向我的 jdk1.7;
SetJavaHome C:\Java\jdk1.7
BUT STILLWhenever I run the sqldeveloper.exe I get warning saying it can not run on Java 1.6 and it needs Java1.7 !!
但是每当我运行 sqldeveloper.exe 时,我都会收到警告说它不能在 Java 1.6 上运行,它需要 Java1.7 !!
How can I get this stupid thing installed on my machine?? very frustrating..
我怎样才能在我的机器上安装这个愚蠢的东西?很郁闷。。
采纳答案by Spring
It turned out to be that there is an IBM JDK1.6 folder on some irrelevant directory for some other project..It was there evenI uninstalled all other JDK's yesterday..Today I just deleted that JDK folder..than all of a sudden sqldeveloper found the java1.7 and started working..WTF=WTF
原来,是有关于其他一些project..It一些无关痛痒的目录中的IBM JDK1.6的文件夹在那里甚至我卸载了所有其他JDK的yesterday..Today我只是删除了JDK folder..than一下子sqldeveloper 找到了 java1.7 并开始工作..WTF=WTF
回答by HinduWarrior
Goto the file: C:\Users\<USER>\AppData\Roaming\sqldeveloper\1.0.0.0.0\product.conf
转到文件:C:\Users\<USER>\AppData\Roaming\sqldeveloper\1.0.0.0.0\product.conf
In this file eg: SetJavaHome <PATH>\jdk1.7.0_67
在这个文件中例如: SetJavaHome <PATH>\jdk1.7.0_67