简体   繁体   中英

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 :

No JDK found

NetBeans IDE cannot be installed. Java (JRE) found on your computer but JDK 7 update 10 or newer is required. 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.

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.

Update1 : Here is what java -version gives 在此输入图像描述

Update2 : System Preferences --> Java

在此输入图像描述

Are you sure that you are not confusing jre with Java development tool kit aka JDK. You may have jre but may not have JDK. Try this and let us know the JDK version . Open the terminal in OSX and type this -

java -version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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