PDA

View Full Version : Java 1.7 not recognized




MatthewAMEL
Apr 19, 2013, 12:20 PM
Greetings, all.

Stumped here with a Java problem.

I recently installed JRE1.7u21 from Oracle.

Now, when I use any Java app (crashplan) or type 'java -version' in Terminal, it tells me there is no Java runtime installed.

In System Preferences, 'Java' is there and tells me it's version 7, update 21.

Any ideas?

BTW- I just noticed that my /System/Library/Java/JavaVirtualMachines folder is empty. Shouldn't there be something there?



maflynn
Apr 19, 2013, 12:41 PM
My folder is not empty
http://webimg.net/jdk.png

Doesn't apple provide the java download for OSX? I think you may get yourself in deep weeds installing Java outside of what is expected.

stchman
Apr 19, 2013, 02:13 PM
I downloaded the Java 7u21 and when I type java -version in a terminal I get the proper version.

Maybe try re-installing Java 7.

----------

My folder is not empty
Image (http://webimg.net/jdk.png)

Doesn't apple provide the java download for OSX? I think you may get yourself in deep weeds installing Java outside of what is expected.

Apple does not support Java 7.

maflynn
Apr 20, 2013, 06:34 AM
Do you need java 7, will to certified i.e., supplied version fit your needs

My point is your going outside the accepted method to install java

Good luck

SlCKB0Y
Apr 20, 2013, 08:34 AM
My point is your going outside the accepted method to install java


Is it? I thought that the 'correct' way to get Java now was direct from Oracle?

Apple even mentions it here: http://support.apple.com/kb/HT5559

maflynn
Apr 20, 2013, 08:40 AM
At one point they did mention it, but then like the article you linked to guide you to re-use the apple provided java.

I'm not saying the OP shouldn't use it, just that going outside the accepted means may cause issues.

Apple seems to be supporting java insofar as continuing to provide updates, rather then directing people to go to oracle.

MatthewAMEL
Apr 21, 2013, 08:40 PM
Do you need java 7, will to certified i.e., supplied version fit your needs

My point is your going outside the accepted method to install java

Good luck

The 1st line of the Apple KB article says
If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps.

Doesn't sound like 'outside the accepted method'.

I re-installed Java 1.7 many times. At no time did it populate the VirtualMachine directory.

I finally copied over the contents of the directory from my MBP and then re-installed 1.7.

After that, Java works and reports the correct version. Java installation and updating is seriously broken on OS X.

It appears that the 1.7 JRE installer doesn't actually install a JVM. It simply updates the plug-in.

canyonlight
Apr 25, 2013, 02:17 AM
Then what should I do if I have twice tried to install the Java for OS X 2013-003 1.0 update to my early 2013 rMBP running OS X 10.8.3.

On both occasions after the update install a flashing window starts appearing asking if I wand to allow "java" to accept incoming network connections. The window flashes off so fast that neither button can be clicked.

On both occasions the only way I could stop this behavior was to restore the computer to the state where it was prior to the attempted update install using SuperDuper and a backup.

Does anybody understand what is going on and how it may be resolved?

xgman
May 1, 2013, 09:19 AM
I use little snitch to permanently deny connections to java.

dyn
May 1, 2013, 03:20 PM
In order for the commandline one to work you need to install the JDK, not the JRE. The JRE is fine if you only require Java in your webbrowser.

Unfortunately the location of Java has been changed with 1.7. There still are some apps that look for Java in the old location, they can't find it and thus OS X prompts you to install Java. Hit ok and it'll install Java 1.6. So much for Apple not providing Java in ML any more....

canyonlight
May 3, 2013, 07:36 PM
Does anybody know exactly what we're supposed to do to correctly download and install Java (JDK or JRE, and where is the correct download link?) and then how to find and add the correct item in the firewall?:confused: