본문 바로가기

Issues

MAC에서 jdk 버전 낮추기 downgrade jdk version on OSX

https://stackoverflow.com/questions/46513639/how-to-downgrade-java-from-9-to-8-on-a-macos-eclipse-is-not-running-with-java-9


사실 저 위에 있는 문서 보면 알겠지만.


대충 해석 해보면


OSX는 멀티 JDK version을 지원한다 정도가 될 수 있겠네요.


Step 1: Install Java 8

You can download Java 8 from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Step 2: After installation of Java 8. Confirm installation of all versions.Type the following command in your terminal.

/usr/libexec/java_home -V

Step 3: Edit .bash_profile

sudo nano ~/.bash_profile

Step 4: Add 1.8 as default. (Add below line to bash_profile file).

export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)

Now Press CTRL+X to exit the bash. Press 'Y' to save changes.

Step 5: Reload bash_profile

source ~/.bash_profile

Step 6: Confirm current version of Java

java -version


아몰랑 하면서 그냥 하드를 밀어버리려고했던 1시간전의 나에 대해 부끄러움을 느낌...