Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the default compiler?

I have javac complier installed on my mac mashine. By default its version is 7. I want to set complier version to 6 by default. How do I do it on Mac?

Ive found simular solution for ubuntu: http://bartling.blogspot.com/2007/03/getting-java-6-to-be-default-jvm-on.html

like image 615
pleerock Avatar asked Feb 08 '13 11:02

pleerock


1 Answers

$ export JAVA_HOME=/usr/libexec/java_home -v '1.6*'

like image 99
TheWhiteRabbit Avatar answered Sep 25 '22 01:09

TheWhiteRabbit