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

I followed all the steps and now the browser is running java 6. However, in my terminal when I type "java -version" it still shows java 1.7. Any idea how to convert the terminal version of the java back to java 6?

I have installed the JDK 7 on my Macbook running Mountain Lion. However, Some of my previous codes break under java 7 and I need to go back to java 6. I follow all the steps mentioned in the post and now when I check my browser java version it shows java 6. However, still my terminal shows the version of java as 7. In fact, when I type "Java -version" in my terminal, it shows Java 1.7 and my code still doesn't work. Any idea on how to also change the terminal used java to 6?



thanks

MacBook Pro with Retina display, OS X Mountain Lion (10.8.1)

Posted on Dec 5, 2012 12:02 AM

Reply
4 replies

Dec 5, 2012 11:26 AM in response to RezaSH

I have this same exact issue. For some reason, XCode doesn't work with the current 1.7 configuration when trying to upload a binary. I've tried applying solutions found on java.com, apple, and stack overflow.


java -version

java version "1.7.0_04"

Java(TM) SE Runtime Environment (build 1.7.0_04-b21)


XCode:

An Error occurred uploading to the iTunes store. (then:

cat /var/log/system.log

Error:

Java 1.5, 1.6, or 1.7 is required. Currently, java is the default java version. Please upgrade.)


I'm not sure if this is Oracle or Apple's fault, but people need to be more careful when shipping production code that affects so many other people!

Dec 5, 2012 11:56 AM in response to RezaSH

It seems I was able to resolve this with the information on the following page:


http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html#uninstall


I wish I could understand the intracacies of java, because this was a real pain in the neck to resolve. Hope that page helps someone out there save an hour or two of their time.

I followed all the steps and now the browser is running java 6. However, in my terminal when I type "java -version" it still shows java 1.7. Any idea how to convert the terminal version of the java back to java 6?

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