Builds failing after upgrading to Java7, Missing Tools.jar and bad class versions

后端 未结 8 1697
滥情空心
滥情空心 2020-12-08 17:55

I recently upgraded to Java7 on my Macbook Pro. I downloaded the JDK (not the JRE).

» javac version
javac 1.7.0_17

» echo $JAVA_HOME    
/Library/Java/Java         


        
8条回答
  •  囚心锁ツ
    2020-12-08 18:22

    Most probably javac is running from JRE and not JDK. tools.jar is only available in JDK. Confirm the path of javac/java by using which

    which javac
    

    Drag correct Java7 version to top in Java Preferences (Launchapad/Others). That should point A to JDK7.

提交回复
热议问题