64bit Ubuntu에서는 apt-get install을 통한 sun-java6-jdk의 설치시 아래와 같은 에러가 발생한다.
The following packages have unmet dependencies:
sun-java6-jdk:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
apt-get install을 통해 설치가능한 oracle-java7-installer은 Android Platform Build 에서 Java Version error 가 발생한다.
OS : 64 Bit Ubuntu 12.04 LTS 이상
Installing Sun JDK 6 Update on Ubuntu 12.04
- Download the jdk-6u32-linux-i586.bin from the Sun Java Download Centre. If you are on 64-bit Ubuntu, you should grab jdk-6u32-linux-x64.bin.
- Make the bin file executable:
1
chmod +x jdk-6u32
-linux
-x64.bin
- Extract the bin file:
1
./jdk-6u32
-linux
-x64.bin
- Move extracted folder to this location:
1
sudo
mv
jdk1.6.0_32 /usr/lib/jvm/
- Install the new Java source in system:
1
sudo update
-alternatives
-
-install
/usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_32/bin/javac 1
2
sudo update
-alternatives
-
-install
/usr/bin/java java /usr/lib/jvm/jdk1.6.0_32/bin/java 1
3
sudo update
-alternatives
-
-install
/usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_32/bin/javaws 1
- Choose default Java:
1
sudo update
-alternatives
-
-config
javac
2
sudo update
-alternatives
-
-config
java
3
sudo update
-alternatives
-
-config
javaws
- Check the Java version:
1
java
-version
- Verify the symlinks all point to the new Java location:
1
ls
-la
/etc/alternatives/java*
댓글 없음:
댓글 쓰기