oracle SQL Developer 17.2 - 无法启动 Java 虚拟机
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45607938/
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
SQL Developer 17.2 - Unable to launch the Java Virtual Machine
提问by 4532066
SQL Developer version 4.2.0.17 is set up on a computer I'm using (I'm using Windows).
SQL Developer 版本 4.2.0.17 设置在我使用的计算机上(我使用的是 Windows)。
The folder for that version contains a jdk folder and the SQL developer runs fine.
该版本的文件夹包含一个 jdk 文件夹,SQL 开发人员运行良好。
I downloaded SQL Developer 17.2 and unzipped the file. When I went to run the .exe I was asked to confirm the location of the jdk on the computer.
我下载了 SQL Developer 17.2 并解压了文件。当我去运行 .exe 时,我被要求确认 jdk 在计算机上的位置。
At that time, I didn't realise that the jdk folder was already in the folder for SQL Dev 4.2.
当时,我没有意识到 jdk 文件夹已经在 SQL Dev 4.2 的文件夹中。
There is also an 'OraHome_WF' folder on the c:\ drive, which contains a jdk folder, so I confirmed that was the location of the jdk folder when first launching SQL Dev 17.2.
c:\ 驱动器上还有一个“OraHome_WF”文件夹,其中包含一个 jdk 文件夹,因此我在首次启动 SQL Dev 17.2 时确认这是 jdk 文件夹的位置。
Now when I launch SQL Dev 17.2 I get an error message:
现在,当我启动 SQL Dev 17.2 时,我收到一条错误消息:
Unable to launch the Java Virtual Machine Location at path: C:\OraHome_WF\jdk\jre\bin\msvcr100.dll
无法在以下路径启动 Java 虚拟机位置:C:\OraHome_WF\jdk\jre\bin\msvcr100.dll
I looked in the 17.2 folder to see if there were any config or settings files that might have been updated after I put the wrong jdk path in, so I could point to the correct jdk folder, but I can't see anything.
我查看了 17.2 文件夹,看看是否有任何配置或设置文件在我输入错误的 jdk 路径后可能已更新,因此我可以指向正确的 jdk 文件夹,但我什么也看不到。
I tried deleting the 17.2 files and unzipping the 17.2 folder again, but when I launched SQL Dev I got the same error without being asked where the jdk folder is located.
我尝试删除 17.2 文件并再次解压缩 17.2 文件夹,但是当我启动 SQL Dev 时,我得到了同样的错误,而没有被问到 jdk 文件夹的位置。
Is there any way I can work around this problem?
有什么办法可以解决这个问题吗?
I already tried this workaround: SQL Developer error Unable to find Java Virtual Machine
我已经尝试过这个解决方法: SQL Developer error Unable to find Java Virtual Machine
采纳答案by krokodilko
According to the documentation, user preference settings are located in the following locations:
根据文档,用户首选项设置位于以下位置:
SQL Developer user preferences
Windows: C:\Users\\AppData\Roaming\SQL Developer\systemn.n.n.n.n
Linux or Mac OS X: ~/.sqldeveloper/systemn.n.n.n.n
SQL Developer 用户首选项
Windows:C:\Users\\AppData\Roaming\SQL Developer\systemn.nnnn
Linux 或 Mac OS X:~/.sqldeveloper/systemn.nnnn
Removing this subdirectory should fix the problem (and in this case it fixed it).
删除这个子目录应该可以解决这个问题(在这种情况下它修复了它)。