2012-05-14 2 views
0
내가 우분투 11.04에서 자바를 설치하려고했다

, 나는 이것에 대한 "JDK-1_5_0_22-리눅스-i586.bin는"내가 튜토리얼 thisthis우분투에서 자바 5를 설치 11.04

# sudo mv jdk-1_5_0_22-linux-i586.bin /usr/lib/jvm 
# cd /usr/lib/jvm 
# chmod +x jdk-1_5_0_22-linux-i586.bin 
# ./jdk-1_5_0_22-linux-i586.bin 

내가 사용 다운로드 명령 # ./jdk-1_5_0_22-linux-i586.bin을 실행 전,

Do you agree to the above license terms? [yes or no] 
y 
Unpacking... 
./jdk-1_5_0_22-linux-i586.bin: 394: cannot create install.sfx.3350: Permission denied 
Checksumming... 
/usr/bin/sum: install.sfx.3350: No such file or directory 
expr: syntax error 
expr: syntax error 
chmod: cannot access `install.sfx.3350': No such file or directory 
Extracting... 
./jdk-1_5_0_22-linux-i586.bin: 424: ./install.sfx.3350: not found 
mkdir: cannot create directory `jdk1.5.0_22/jre': No such file or directory 
mkdir: cannot create directory `jdk1.5.0_22/jre/.systemPrefs': No such file or directory 
touch: cannot touch `jdk1.5.0_22/jre/.systemPrefs/.system.lock': No such file or directory 
chmod: cannot access `jdk1.5.0_22/jre/.systemPrefs/.system.lock': No such file or directory 
touch: cannot touch `jdk1.5.0_22/jre/.systemPrefs/.systemRootModFile': No such file or directory 
chmod: cannot access `jdk1.5.0_22/jre/.systemPrefs/.systemRootModFile': No such file or directory 
cd: 751: can't cd to jdk1.5.0_22 

우분투 환경에 새로운 오전 다음과 같은 오류 메시지를받을 수 있나요 자바 EE로 설정 일식에 노력하고 있습니다.

답변

2

sudo ./jdk-1_5_0_22-linux-i586.bin은 해당 디렉토리에 쓰기 권한이 없으므로 수행해야합니다. 그러나 root 않습니다.

0

수퍼 유저 권한 sudo으로 bin을 실행하십시오. 또한 최신 버전의 JDK를 사용하는 경우 소스의 준수 수준을 1.5로 설정할 수 있습니다.

0

권한이 필요합니다. 이 방법이 권장되지

#su

비록 : 다음을 사용하여, 두 가지 옵션이 있습니다, 하나 슈퍼 사용자 모드로 전환합니다.

#sudo ./jdk-1_5_0_22-linux-i586.bin

: 번째 가장 일반적인 적절한 방법으로, sudo 명령을 사용하는 것