Pregunta

I don't know if it is the right place to ask, if not tell me I will migrate my question elsewhere.

I am using OSX (Maverick) and I am trying to install the JDK 7 in order to use javaFX. So I downloaded the .dmg package from oracle and when I double click on the package, I get the error message can't found mountable file systems. In the documentation I found this alert:

If you download Java 7, you will not be able to run Java content in Chrome on Mac OS X and will need to use a 64-bit browser (such as Safari or Firefox) to run Java content within a browser. Additionally, installing Java 7 will disable the ability to use Apple Java 6 on your system.

So how can I properly install the JDK 7? and Is it dangerous to install it? Could it mess up all my settings, knowing that I only want to use the JDK 7 to run some java project ?

¿Fue útil?

Solución

I believe the error message you are getting just indicated a corrupt dmg file. Try downloading and installing it again and it should work fine.

So how can I properly install the JDK 7?

You can only install the 64bit version of Java 7, the only real downside is that it will not work with things like the crome browser, you can install it the same way as you first tried, download and install it from here: JDK Download

Is it dangerous to install it? Could it mess up all my settings

No, installing the JDK should not make any noticeable change, even if you run apps on it instead of your previous JDK/jar, they should still work. If you have older JDK's installed you can still use/select them in an IDE. If you do use crome then it should continue to work as normal using the existing/old JRE/JDK that you have installed.

knowing that I only want to use the JDK 7 to run some java project ?

The Java 7 JDK is backwards compatible, meaning it should run all existing java apps.

If you were worried about swapping between Java 6&7 then this thread may help: https://superuser.com/questions/490425/how-do-i-switch-between-java-7-and-java-6-on-os-x-10-8-2

Otros consejos

You can download on another system. And unzip the contents to a folder. Then you can copy that onto your Mac and try. I guess that is what he meant by the folder.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top