简体   繁体   English

为什么SQL Developer不接受JDK?

[英]Why won't SQL Developer accept a JDK?

I downloaded Oracle 11g r2 and am trying to launch SQL Developer for the first time. 我下载了Oracle 11g r2,并试图首次启动SQL Developer。 However, it is asking for a JDK path. 但是,它要求一个JDK路径。 When I first tried a java.exe that I already had installed on my PC, SQL Developer said that it was not a JDK, so I tried the following steps, which have not yet resolved the problem. 当我第一次尝试已经在PC上安装的java.exe ,SQL Developer表示它不是JDK,因此我尝试了以下步骤,但尚未解决问题。

1.) I went to the oracle jdk download page and explicitly downloaded jdk-8u-74-windows-x64,exe shown below 1.)我转到oracle jdk下载页面,并明确下载了jdk-8u-74-windows-x64,exe如下所示

2.) I then let the installer install the program to C:\\ProgramFiles\\Java\\jdk1.8_74\\ 2.)然后,我让安装程序将程序安装到C:\\ProgramFiles\\Java\\jdk1.8_74\\

3.) I next pointed the Oracle SQL Developer dialog box to the path of the java.exe in this new directory. 3.)接下来,我将Oracle SQL Developer对话框指向该新目录中java.exe的路径。

But Oracle SQL Developer just replaces the dialog box with a new empty dialog box. 但是Oracle SQL Developer只是用一个新的空对话框替换了该对话框。 This repeats every time that I try. 每次我尝试都重复一次。

Why can't Oracle SQL Developer accept this JDK? Oracle SQL Developer为什么不能接受此JDK? What specific steps need to be taken to get Oracle SQL Developer to the point where it understands that it has a JDK and thus moves further into the launch process? 要使Oracle SQL Developer知道自己拥有JDK,并进而进入启动过程,需要采取哪些具体步骤?

A screen shot is at the following link: 屏幕快照位于以下链接:

http://s13.postimg.org/ilsqjdj1z/sql_developer_jdk.jpg http://s13.postimg.org/ilsqjdj1z/sql_developer_jdk.jpg

I would embed the url of the image into this view, but I need at least 10 reputation points to do that. 我会将图像的网址嵌入到此视图中,但是我至少需要10个信誉点才能做到这一点。 So please click the link to view the screen shot. 因此,请单击链接以查看屏幕快照。


Continuing Research: 持续研究:


I repeated the steps above with JDK 6, Build 45, but am getting the same failed results. 我对JDK 6,Build 45重复了上述步骤,但是得到了同样的失败结果。

I would ask this in chat, but I need at least 20 reputation points to talk in a chat room. 我会在聊天中问这个问题,但我至少需要20个信誉点才能在聊天室中进行交谈。

If you are installing on 64-bit windows, get the 64-bit SQL Dev. 如果要在64位Windows上安装,请获取64位SQL Dev。 It has the java built in, and so does not require the extra JDK. 它具有内置的Java,因此不需要额外的JDK。

It's possible you had a JRE, and not a JDK. 您可能有一个JRE,而不是JDK。 Also, when it prompts for a path, don't select the Java.exe, instead you want the 'Java Home', for example: C:\\Program Files\\Java\\JDK1.8.0_60 另外,当提示输入路径时,请不要选择Java.exe,而要使用“ Java Home”,例如:C:\\ Program Files \\ Java \\ JDK1.8.0_60

Some more details here 一些更多的细节在这里

Or, if you're on a Mac . 或者,如果您使用的是Mac

Or, if your 'java' moves on you - common on Mac's after an OS upgrade. 或者, 如果您的“ java”在您身上移动 -操作系统升级后在Mac上很常见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM