简体   繁体   English

如何在mac os mavericks上安装Netbeans 7.4(已经安装了jdk 7 update 45)?

[英]How to install Netbeans 7.4 on mac os mavericks (with jdk 7 update 45 already installed)?

I am trying to install Netbeans 7.4 on my mavericks mac os system but I get this very strange message at the start of installation : 我试图在我的mavericks mac os系统上安装Netbeans 7.4,但是在安装开始时我得到了这个非常奇怪的消息:

No JDK found 找不到JDK

NetBeans IDE cannot be installed. 无法安装NetBeans IDE。 Java (JRE) found on your computer but JDK 7 update 10 or newer is required. 在您的计算机上找到Java(JRE),但需要JDK 7更新10或更新版本。 Please download and install the latest update of JDK 7 from http://www.oracle.com/technetwork/java/javase/downloads/index.html and restart NetBeans installation. 请从http://www.oracle.com/technetwork/java/javase/downloads/index.html下载并安装JDK 7的最新更新,然后重新启动NetBeans安装。

What is so strange here is that I have already installed jdk 7 update 45 on my system, since I use it to work on projects made with IntelliJ Idea, the other IDE that I use. 这里很奇怪的是我已经在我的系统上安装了jdk 7 update 45,因为我用它来处理用我使用的另一个IDE IntelliJ Idea制作的项目。

Update1 : Here is what java -version gives Update1:​​这是java -version提供的内容 在此输入图像描述

Update2 : System Preferences --> Java Update2:系统首选项 - > Java

在此输入图像描述

Are you sure that you are not confusing jre with Java development tool kit aka JDK. 您确定不要将Java与Java开发工具包(又称JDK)混淆。 You may have jre but may not have JDK. 你可能有jre但可能没有JDK。 Try this and let us know the JDK version . 试试这个,让我们知道JDK版本。 Open the terminal in OSX and type this - 在OSX中打开终端并输入 -

java -version

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

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