Java path from Mac OS X

Where is my Java SDK from Mac OS X with Oracle's JVM installing.
Easy way to find out it is running the below command from the terminal.

/usr/libexec/java_home

Can be a good idea to add JAVA_HOME to your .bash_profile file. such as

> vim ~/.bash_profile

Add the below line from vim.

export JAVA_HOME=`/usr/libexec/java_home`

Save file. Done.

댓글

이 블로그의 인기 게시물

Wireless: HotSpot 2.0 이란?

Apple M1 Mac Mini에서 이더리움 (Ethereum) 채굴하기

Java: Java for Game? Java가 Game 개발에 어울릴까?