JAVA_HOME is 1.5, but java -version is 1.6

Discussion in 'Mac Programming' started by duggram, Jul 14, 2009.

  1. macrumors 6502


    Apr 17, 2008
    Do I need to change something?

    When I check java -version I get:

    java version "1.6.0_13"
    Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
    Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)

    But when I got to /Library/Java, right click on the Home alias and select Show Original it takes me to the 1.5 folder. So I'm wandering if I should change my home ailas.

    BTW I'm on OS X 10.5.7
  2. macrumors newbie


    Feb 27, 2009
    The current version of Java is actually mapped via /System/Library/Frameworks/JavaVM.framework/Versions/Current

    If you look at what that is linked to, that will be the version of Java that gets run.

Share This Page