SQL SQLDeveloper 未启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22810318/
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
SQLDeveloper not starting
提问by user1407668
When i try to start SQLDeveloper, it is giving me the following error in command prompt:
当我尝试启动 SQLDeveloper 时,它在命令提示符中给了我以下错误:
Error: This product requires a Java(TM) Platform 5.0 runtime.
You are using 1.4.2-b28 from C:\j2sdk1.4.2\jre
But my JAVA_HOME is set to java 6
但是我的 JAVA_HOME 设置为 java 6
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_32
Can anyone explain what exactly to do to resolve this?
任何人都可以解释究竟该怎么做才能解决这个问题?
回答by Rahinur Rahaman
Oracle SQL Developer uses a configuration file named products.conf which is situated at your roaming directory.
Oracle SQL Developer 使用名为 products.conf 的配置文件,该文件位于您的漫游目录中。
If you are using Windows 7 then the directory path will be: C:\Users\\AppData\Roaming\sqldeveloper\1.0.0.0.0
如果您使用的是 Windows 7,则目录路径将为:C:\Users\\AppData\Roaming\sqldeveloper\1.0.0.0.0
- Delete whole sqldeveloper directory from C:\Users\\AppData\Roaming\
- Re run sqldeveloper executable, this will prompt for jdk home
- Select jdk home. i.e C:\Program Files\Java\jdk1.7.0_55
- Enjoy!
- 从 C:\Users\\AppData\Roaming\ 删除整个 sqldeveloper 目录
- 重新运行sqldeveloper可执行文件,这会提示jdk home
- 选择jdk主页。即 C:\Program Files\Java\jdk1.7.0_55
- 享受!
回答by rigby
In my case i had 2 folders under C:\Users\username\AppData\Roaming\
就我而言,我有 2 个文件夹 C:\Users\username\AppData\Roaming\
- sqldeveloper
- SQL developer
- 开发者
- SQL 开发人员
after removing both of them and launching installation dir\sqldeveloper\sqldeveloper\bin\sqldeveloper64.exe
it worked.
删除它们并启动安装后,dir\sqldeveloper\sqldeveloper\bin\sqldeveloper64.exe
它起作用了。
回答by user3024238
True acknowledgement / attribution belongs to Vishal at the following URL: http://vishalorcl.blogspot.com/2012/12/sql-developer-from-11201-client-software.html. It describes in detail how to resolve this problem. From the page:
真正的确认/归属属于 Vishal,位于以下 URL:http: //vishalorcl.blogspot.com/2012/12/sql-developer-from-11201-client-software.html。它详细描述了如何解决此问题。从页面:
I am running Oracle 11g version of SQLDeveloper. I have same problem noted above, after fresh install of Oracle. The summary is that SQLDeveloper seems to require the Java 32-bit JDK.
Install 32-bit jdk V7 from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
There is a sqldeveloper.conf file located in C:\app\UserName\product\11.2.0\dbhome_1\sqldeveloper\sqldeveloper\bin
In the file change pathname within the line at end of file: SetJavaHome C:\app\admin\product\11.2.0\client_1\jdk
To point to pathname of the jdk install directory; also sometimes known as JAVA_HOME.
我正在运行 SQLDeveloper 的 Oracle 11g 版本。在全新安装 Oracle 后,我遇到了上述相同的问题。总结是 SQLDeveloper 似乎需要 Java 32 位 JDK。
从 Oracle 安装 32 位 jdk V7:http: //www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
有一个 sqldeveloper.conf 文件位于 C:\app\UserName\product\11.2.0\dbhome_1\sqldeveloper\sqldeveloper\bin
在文件末尾行内的文件更改路径名中:SetJavaHome C:\app\admin\product\11.2.0\client_1\jdk
指向jdk安装目录的路径名;有时也称为 JAVA_HOME。
回答by user5170001
I had this problem too! you should go to: C:\Users-your user name-\AppData\Roaming\sqldeveloper-version of your sql developer- there is a file named product.conf there. Right click on it and edit it with notepad in the document change the address of java home and save it. Done!
我也有这个问题!您应该转到:C:\Users-您的用户名-\AppData\Roaming\sqldeveloper-sql 开发人员的版本-那里有一个名为 product.conf 的文件。右键单击它并在文档中用记事本编辑它更改java home的地址并保存它。完毕!
回答by Lukas Eder
In my case, none of the other suggestions worked. Instead, I moved the installation directory from
就我而言,其他建议均无效。相反,我将安装目录从
c:\sqldeveloper
to
到
anything else
And things worked again. Perhaps, some Windows registry value got broken in an unfixable way...
事情又奏效了。也许,某些 Windows 注册表值以无法修复的方式损坏了......
回答by John Villa
Removing the instances from the registry worked for me.
从注册表中删除实例对我有用。
回答by lena
check the version of java that you are installing to you Pc the error show that you are using 4 so uninstall the java that you have then install a new one that is version higher than 5
检查您正在安装到您的 Java 版本 PC 错误显示您正在使用 4,因此卸载您拥有的 Java,然后安装一个版本高于 5 的新版本
回答by Mark Wagoner
I don't think SQLDeveloper uses the environment variable. There should be a .conf file that contains a reference to the JDK directory.
我不认为 SQLDeveloper 使用环境变量。应该有一个 .conf 文件,其中包含对 JDK 目录的引用。
回答by Tschakki
I solved this by deleting the folder /home/USERNAME/.sqldeveloper After that, I started SQLDeveloper and without typing anything, it found the right java-version and started without complaining :-)
我通过删除文件夹 /home/USERNAME/.sqldeveloper 解决了这个问题之后,我启动了 SQLDeveloper 并且没有输入任何内容,它找到了正确的 java 版本并开始没有抱怨:-)
So, if you don't want to delete the whole folder, maybe search there for the file which defines the java-version :-)
所以,如果你不想删除整个文件夹,可以在那里搜索定义 java-version 的文件:-)
edit: just found that: "Type the full pathname of a J2SE installation (or Ctrl-C to quit), the path will be stored in ~/.sqldeveloper/jdk"
编辑:刚刚发现:“输入J2SE安装的完整路径名(或Ctrl-C退出),路径将存储在~/.sqldeveloper/jdk中”