취코, 취하다 코딩에~
ubuntu에서 java 환경변수 설정 본문
gedit ~/.bashrc
Now add the following to the end of the file.
JAVA_HOME=/usr/lib/jvm/java
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
NOTE: If /usr/lib/jvm/java does not match the actual JAVA_HOME path in your environment, then set the actual JAVA_HOME, where you have installed Java in your machine.
Now run,
source ~/.bashrc
Then, try running the following commands and check whether your getting the appropriate responses:
echo $JAVA_HOME
/usr/lib/jvm/java
/usr/lib/jvm/java
echo $PATH
:/usr/lib/jvm/java/bin
'프로그래밍 > 리눅스' 카테고리의 다른 글
한번에 끝내는 Ubuntu 웹서버세팅 (우분투 서버세팅) (0) | 2018.02.08 |
---|---|
WGET 명령어 (0) | 2018.02.08 |
리눅스 설치, 백업, 잡오류 (0) | 2018.02.08 |
리눅스 정리 (0) | 2018.02.08 |
profile,bashrc차이점 (0) | 2018.02.08 |
Comments