Pregunta

I'm trying to install Netbeans 8 but the installer is not finding JDK.

But, I can't update my Java, I installed the update 51 of java 7 but when I go in terminal I get it:

Alessandros-MacBook:~ alessandrogarcez$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

In "System preferences", I have version 7 installed.

enter image description here

It seems to have both version of java installed in my mac.

Someone can help me to solve it?

Thanks

¿Fue útil?

Solución

I was trying to install jre-7u45-macosx-x64.dmg and I don't know why it doesn't overwrite java 6.

I've read a lot of topics, tried all of them. http://support.apple.com/kb/DL1572?viewlocale=en_US http://www.cc.gatech.edu/~simpkins/teaching/gatech/cs2340/guides/java7-macosx.html

After all of it, I just downloaded jdk-7u51-macosx-x64.dmg and it worked. The version 7 overwrited the 6.

Alessandros-MacBook:~ alessandrogarcez$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top