After Installing Java JDK 7 For Mac OS X – mvn -version still shows java version 1.6.0_31

Finally found the answer here:

http://www.adam-bien.com/roller/abien/entry/java_se_development_kit_7

You should use JAVA_HOME=$(/usr/libexec/java_home) instead on a Mac and then set the current jdk via “Java Preferences.app”.

Set JAVA_HOME in ~/.profile

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)