Question on Java version

Discussion in 'Mac Programming' started by aaronvan, Jun 16, 2014.

  1. aaronvan, Jun 16, 2014
    Last edited: Jun 16, 2014

    aaronvan Suspended

    aaronvan

    Joined:
    Dec 21, 2011
    Location:
    República Cascadia
    #1
    When I open the Java Control Panel in System Preferences it says I'm running Version 7 Update 60 (build 1.7.0_60-b19).

    However, in terminal
    returns:

    java version "1.6.0_65"

    Additionally,
    returns:

    /usr/bin/javac

    Obviously, I have one version of Java in my bin path and another installed somewhere else. But where and why? And what version does Mavericks use?

    I'm just curious. :)
     
  2. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #2
    It depends. If you run a Java application, it will use the 1.6 version that you likely auto downloaded from Apple at some point. That sits in this folder.

    Code:
    /System/Library/Java
    But if you hit a web site that wants to use Java it will use the Java 1.7 web plugin at this folder.

    Code:
    /Library/Internet Plug-Ins
     
  3. Sciuriware macrumors regular

    Sciuriware

    Joined:
    Jan 4, 2014
    Location:
    Gelderland
    #3
    but ......... if you write JAVA applications in ECLIPSE for 1.7 and build .jar's
    off them, they will report that they run in 1.7

    However, it seems that ECLIPSE itself needs 1.6 from APPLE to display right
    on retina screens.
    ;JOOP!
     
  4. aaronvan thread starter Suspended

    aaronvan

    Joined:
    Dec 21, 2011
    Location:
    República Cascadia
    #4
    Excellent, thanks.
     

Share This Page