Programming/java

OSX JAVA 설치.

사리생성 2018. 2. 1. 15:12


JDK 설치.

http://www.oracle.com/technetwork/java/index.html


다운로드

http://www.oracle.com/technetwork/java/javase/downloads/index.html


OSX 설정 및 설치위치.

cat ~/.bash_profile 

export JAVA_HONE=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home

#export JAVA_HONE=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home


OSX 자바 정보.

[/System/Library/Frameworks/JavaVM.framework/Versions]$ source ~/.bash_profile 

[/System/Library/Frameworks/JavaVM.framework/Versions]$ java --version

java 9.0.4

Java(TM) SE Runtime Environment (build 9.0.4+11)

Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

[/System/Library/Frameworks/JavaVM.framework/Versions]$ which java

/usr/bin/java

[/System/Library/Frameworks/JavaVM.framework/Versions]$ ls -al /usr/bin/java*

lrwxr-xr-x  1 root  wheel  74  1 31 15:13 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java

lrwxr-xr-x  1 root  wheel  75  1 31 15:13 /usr/bin/javac -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac

lrwxr-xr-x  1 root  wheel  77  1 31 15:13 /usr/bin/javadoc -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javadoc

lrwxr-xr-x  1 root  wheel  75  1 31 15:13 /usr/bin/javah -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javah

lrwxr-xr-x  1 root  wheel  75  1 31 15:13 /usr/bin/javap -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javap

lrwxr-xr-x  1 root  wheel  82  1 31 15:13 /usr/bin/javapackager -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javapackager

lrwxr-xr-x  1 root  wheel  76  1 31 15:13 /usr/bin/javaws -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws

[/System/Library/Frameworks/JavaVM.framework/Versions]$ 


생각한거랑 틀리네... 쩝.