아래 내용은 DOS에서 사용되는 autoexec.bat과 같은 .profile(리눅스에서는
보통.bash_profile입니다)에 JDK 관련 프로그램들의 실행경로를 등록하는 것
입니다.
bash(리눅스에서 쓰는 쉘)에서는 다음과 같이 하면 될것 같네요.
export PATH=$PATH:/usr/local/jdk1.2.2/bin
원래는 다시 로그아웃했다가 들어와야 하는데, 꽁수가 있습니다. 이게 쉘마
다 틀려서 아래 글에 각각 나온겁니다.
아래에도 나와 있지만 간단히 하시려면,
cd ~/
. ./.bash_profile
하시면 됩니다.
이제 자바를 사용하실 수 있어야만 하는데... 흠흠..
: 리눅스에 자바를 깔려고 고심하고 있습니다.
: 선자바에서 메뉴얼을 보고 설치하는데 이해가 안가는 부분이 있어서 글을
: 올립니다.
:
: 메뉴얼 중 이해가 잘않가는 부분입니다.
: 제발 도와주세요! 부탁드립니다.
:
: For C shell (csh), edit the startup file (~/.cshrc):
:
: set path=(/usr/local/jdk1.2.2/bin $path)
:
: For ksh, bash or sh, edit the profile file (~/.profile):
:
: PATH=/usr/local/jdk1.2.2/bin:$PATH
:
: Then load the startup file and verify that the path is set
: by repeating the "which" command above:
: For C shell (csh):
:
: % source ~/.cshrc
: % which java
:
: For ksh, bash or sh:
:
: $ . $HOME/.profile--오늘은 좋은날!