java 설치시 패스설정
글쓴이: isaja / 작성시간: 금, 2004/12/31 - 6:24오후
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH="$PATH:$1:/usr/local/j2sdk1.4.1/bin"
export JAVA_HOME="/usr/local/j2sdk1.4.1"
export CLASSPATH="."
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
이부분이..
PATH="$PATH:$1:/usr/local/j2sdk1.4.1/bin"
export JAVA_HOME="/usr/local/j2sdk1.4.1"
export CLASSPATH="."
제가 쓴부분인데 모가틀렸나요..공부하는셈치고 6시간 이것저것 찾아봤는데
도저히 안되네요..
/etc/profile수정내용입니다
사용환경
레드햇9.0
자바스크립트 설치중..
Forums:
export JAVA=/usr/local/javaexport PATH
export JAVA=/usr/local/java
export PATH=$PATH:$JAVA/bin:$JAVA/jre/bin
export CLASSPATH=.:$JAVA/lib:$JAVA/jre/lib
어제 자바 설치했었는데
$HOME/.bashrc 파일에 위처럼 추가하니까 되던데요...
Be cool...
댓글 달기