SQL sqldeveloper中“找不到安装在指定文件夹中的java SE sdk”的解决方法是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/47613857/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 05:22:05  来源:igfitidea点击:

What is the solution of 'can't find java SE sdk installed in specified folder' in sqldeveloper?

sqloracle-sqldeveloper

提问by Abdullah Al Mubin

I just installed oracle database. I want to work using sqldeveloper. I downloaded the latest version of it. After extracting it when I intend to run it, it shows this messages.please specify the path to java jdk homeand 'can't find a java SE SDK installed at"c:\program files(*86)\java\jdk1.7.0_60\bin"'

我刚刚安装了oracle数据库。我想使用 sqldeveloper 工作。我下载了它的最新版本。在我打算运行它时将其解压缩后,它会显示此消息。请指定java jdk home的路径,并且'找不到安装在“c:\program files(*86)\java\jdk1.7.0_60\bin”的java SE SDK'

I can't find any answer for this problem. I tried installing java again, there is no 'jdk' folder in my sqldeveloper folder(latest version). I can't understand what can I do?

我找不到这个问题的任何答案。我再次尝试安装 java,我的 sqldeveloper 文件夹(最新版本)中没有“jdk”文件夹。我不明白我能做什么?

回答by GregHNZ

There could be two things here:

这里可能有两件事:

  1. Don't point SQL Developer to the bin folder - browse to the parent folder
  2. You don't actually have an SDK installed there.
  1. 不要将 SQL Developer 指向 bin 文件夹 - 浏览到父文件夹
  2. 您实际上并没有在那里安装 SDK。

If it's the second point, the following might help. (and if it's not, it will probably sound quite patronising, sorry about that).

如果是第二点,以下内容可能会有所帮助。(如果不是,它可能听起来很傲慢,对此感到抱歉)。

Java comes in two flavours.

Java 有两种风格。

Unless you're a developer, you normally just need the runtime (Java Runtime Environment, or JRE), which is what you normally end up with if you go to download java.

除非您是开发人员,否则您通常只需要运行时(Java 运行时环境,或 JRE),如果您去下载 java.lang.

But if you want to write programs in Java or, it appears, use SQL developer, you need the version of Java that lets you write java programs, and compile them to something that will run on the Java runtime. That's the Java Development Kit, or JDK.

但是,如果您想用 Java 编写程序,或者似乎是使用 SQL developer,则需要允许您编写 Java 程序的 Java 版本,并将它们编译为可以在 Java 运行时上运行的程序。那就是 Java 开发工具包或 JDK。

If you google "download java", you'll end up here: https://java.com/en/download/You get the "runtime" or JRE.

如果您在 google 上搜索“下载 java”,您将在此处结束:https: //java.com/en/download/您将获得“运行时”或 JRE。

But if you google "download jdk", you end up here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

但是如果你谷歌“下载 jdk”,你最终会在这里:http: //www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Which is more likely to be what you want.

哪个更有可能是你想要的。

After you've downloaded and installed that, point SQL Developer at the folder that that one has installed into. You can check you've got a JDK because there'll be a program called javac in the bin folder.

下载并安装后,将 SQL Developer 指向已安装到的文件夹。您可以检查是否有 JDK,因为 bin 文件夹中有一个名为 javac 的程序。

Alternatively, some of the SQL Developer downloads include the JDK as well, so if you make sure you download one of those, it should solve the issue. (This is probably what @Mate is suggesting in that comment).

或者,一些 SQL Developer 下载也包含 JDK,因此如果您确保下载其中之一,它应该可以解决问题。(这可能是@Mate 在该评论中所建议的)。

回答by Ali

You can find JDKin this folder when you install oracle.
choose c:\oracle\x32orx64\client\jdkdirectory.

JDK安装oracle时可以在这个文件夹中找到。
选择c:\oracle\x32orx64\client\jdk目录。

It will solve the problem with SQL Developer because I had to move it to another directory since it asks for admin rights every time non-admin run it.

它将解决 SQL Developer 的问题,因为我必须将它移动到另一个目录,因为每次非管理员运行它时它都会要求管理员权限。

#sqldeveloper
#admin

回答by Yek Nafaskesh

I had the same problem where I kept getting the following errors when I tried to install SQL developer on a virtual machine: Cannot find a Java SE SDK installed at path... and Unable to find Java Virtual MAchine and SQL Developer crashed on startup

我遇到了同样的问题,当我尝试在虚拟机上安装 SQL developer 时,我一直收到以下错误:找不到安装在路径上的 Java SE SDK... 和无法找到 Java 虚拟机和 SQL Developer 在启动时崩溃

In my case, the solution was to move the downloaded installation folder from the virtual machine shared folder to the virtual mahine C:\ folder and run it from there. Hope that helps.

就我而言,解决方案是将下载的安装文件夹从虚拟机共享文件夹移动到虚拟机 C:\ 文件夹并从那里运行它。希望有帮助。

回答by user9821548

I've faced the same problem in the past.

我过去也遇到过同样的问题。

If you are facing this problem on a Windows 10 64 bit OS, Then install the SQL developer tool with JDK, even if you already have JDK installed.

如果您在 Windows 10 64 位操作系统上遇到此问题,请安装带有 JDK 的 SQL 开发人员工具,即使您已经安装了 JDK。