How to install Sun JDK 6
Android 개발환경을 위한 JDK6 설치했던 방법을 정리합니다.- OS : 64bit Ubuntu 12.04 LTS- 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*
댓글 없음:
댓글 쓰기