there is no java virtual machine in Mountain Lion?

I try to access a .jar file typing "java -jar <file name> in Terminal, but I received the following message:


"Could not create the Java virtual machine"


Some help, please.

Posted on Sep 25, 2012 6:35 PM

Reply
12 replies

Sep 25, 2012 8:11 PM in response to Manuel Imaz

By the way, I have just downloaded and installed Java 7. But looking at the Java Preferences utility I see that the installed version is 1.6.0-35 (the last one).

Using Terminal, I confirm that the installed version is 6 in place of 7.


java version "1.6.0_35"

Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)

Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)


I am missing something? When manually insntalling Java need I touch other components? Thxs

Sep 26, 2012 4:36 AM in response to David M Brewer

OK, David, thank you very much. The default version is Java 6, but Java 7 appears as the version to be used with Safari and Firefox (but not with Chrome, as this one is 32 bit based).


One can see that version 7 is installed in the System Preferences, as shown in the window.


How do I know if I have Java installed on my Mac?

Mac OS X 10.6 and below: Apple's Java comes pre-installed with your Mac OS.
Mac OS X 10.7 (Lion) and above: Java is not pre-installed with Mac OS X versions 10.7 and above. To get the latest Java 7 from Oracle, you will need Mac OS X 10.7.3 and above.
If you have Java 7, you will see a Java icon under System Preferences.
Java versions 6 and below are listed in the Java Preferences.app located in the Applications > Utilities folder on your Mac.

User uploaded file

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

there is no java virtual machine in Mountain Lion?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.