安装正确的Java后,MacOS上的Oracle SQLDeveloper无法打开 [英] Oracle SQLDeveloper on MacOS won't open after installation of correct Java

查看:1179
本文介绍了安装正确的Java后,MacOS上的Oracle SQLDeveloper无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了Oracle SQLDeveloper,但是当我打开它时,它说它至少需要Java 8,并给了我下载网站.我继续下载了Java 10.0.1,但是当我继续打开SQL时,它继续说它需要最少的Java 8.

I downloaded the Oracle SQLDeveloper, but when I opened it, it said that it requires a minimum of Java 8 and gave me the website for the download. I went on and downloaded Java 10.0.1, but when I went back on to open SQL, it continued saying it required a minimum of Java 8.

我检查了Java 10.0.1是否已正确安装,并且我很确定已经安装了.它会显示在系统偏好设置"中,并且在单击时会很好地打开Java控制面板.

I checked that the Java 10.0.1 had installed correctly, and I'm pretty sure it has. It shows up in System Preferences and when clicked, it opens the Java Control Panel fine.

我还发现有人建议尝试此命令:

I had also found someone recommending trying this command:

c:\Program Files\Oracle\sqlcl\17.3\sqlcl\bin>java -version

在终端中尝试此操作后,我得到了command not found.

After trying this in the Terminal, I ended up with command not found.

我正在使用MacOS X El Captain 10.11.6.

I'm on a MacOS X El Captain 10.11.6.

推荐答案

上面的帖子是正确的:

The post above is right: SQLDeveloper only runs under Java 8.

这与直觉相反,因为其他程序至少在 X版本的软件下运行(而不是仅X版本).我一直没有运气就下载Java 11.

This is counter-intuitive as other programs runs under at least X version of a software (not only X version). I kept downloading Java 11 with no luck.

在一个月前进行了1次尝试失败并且今天进行了两个小时的搜索后,我发现此简单的修复方法对我有用.

After 1 failed attempt a month ago and two hours of searching today, I found this easy fix worked for me.

解决方案

  1. 在Mac上删除以下Java文件和文件夹.

  1. Delete the following Java files and folders on your mac.

  • /图书馆/Internet插件/JavaAppletPlugin.plugin
  • /Library/Java/JavaVirtualMachines/(删除当前的Java文件夹)

下载并安装Java 8. https://www.oracle.com/technetwork/java /javase/downloads/jdk8-downloads-2133151.html

Download and install Java 8. https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

启动SQLDeveloper.

Launch SQLDeveloper.

这篇关于安装正确的Java后,MacOS上的Oracle SQLDeveloper无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆