You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Why doesn't Terminal show correct Java 7 Update 67?

I use mac OSX Version 10.9.4, Processor 3.06 GHz Intel Core i3 desktop mac.


I always keep my Java updated and only enable it twice a week for one specific chatroom, however, I do need to have it updated and installed (but disabled) to play a game. In my Java Control Panel, it states I am using the most recent version: Java 7 Update 67 but when I access Terminal and type in java -version, it states: java version "1.6.0_65" ???


Why does it not recognize update 67 which is installed? And how do I get Terminal to recognize this? I'm having a problem with a game I play (not through a browser) and in order to submit a trouble ticket, it says I MUST supply a screenshot of me using the most updated Java 7 (which IS installed) within the Terminal's window, otherwise, they won't help me.


Thank you in advance for helping me get Terminal to recognize the correct Java version. 🙂


lablady

iMac, OS X Mavericks (10.9.1), using Epson stylus NX420 with it

Posted on Sep 10, 2014 3:54 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 10, 2014 3:59 PM

The java version available from the Terminal is the JDK version, not the JRE version, and so the last version installed was the Apple-supplied 1.6 where Java used by your browser is the newer Java 1.7.


The way to fix this is to download the JDK for either Java 1.7 or 1.8, as desired, from java.com.


Once you install the JDK, Terminal will report the correct version.

4 replies
Question marked as Top-ranking reply

Sep 10, 2014 3:59 PM in response to lablady

The java version available from the Terminal is the JDK version, not the JRE version, and so the last version installed was the Apple-supplied 1.6 where Java used by your browser is the newer Java 1.7.


The way to fix this is to download the JDK for either Java 1.7 or 1.8, as desired, from java.com.


Once you install the JDK, Terminal will report the correct version.

Sep 10, 2014 5:34 PM in response to Dogcow-Moof

William,


Thank you so much! Yes, this worked. I downloaded the JDK version, checked Terminal and voila! It is now registering the correct updated version.


Now I'm off to screenshot it to send in with my support ticket with Resonant-Rise. (Forge Mod Loader ID mismatches in Minecraft Yogscast Complete Pack w/latest update-bizarre.) 😕


Thanks again!!


lablady

Sep 11, 2014 3:06 AM in response to lablady

For clarity. java -version should only show the SE6 JRE. To see the SE7 version, you should use


/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version


Now, I've never installed the JDK and don't understand the recommendation to install it, vice the JRE. The JRE versions are available from here:


http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html


27" i7 iMac (Mid 2011) refurb, OS X Mavericks (10.9.4), ML & SL, G4 450 MP w/Leopard, 9.2.2

Sep 15, 2014 1:05 PM in response to lablady

The JRE is Java Runtime Environment.


The JDK is Java Development Kit.


In general, the JDK (and the command-line prompt) are used for development in Java or explicit command line execution of java executables via infrastructure installed in /usr/java or a a similar path, e.g.:


$ java -version

java version "1.8.0_20"

Java(TM) SE Runtime Environment (build 1.8.0_20-b26)

Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

$ which java

/usr/bin/java


The JRE is most often used for running web content and plugins.

Why doesn't Terminal show correct Java 7 Update 67?

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