그러나 sun-java6가 ubuntu의 package에서 빠진지 한참된데다 이젠 아에 dependency까지 언급하면서 ppa에서도 안깔린다..ㅜㅜ
그래서 구글링으로 찾은결과..
github(https://github.com/flexiondotorg/oab-java6)에 공개된 script 발견~!
script를 사용하니 깔린다...(감격~~T^T)
아래대로 하면 된다.
$ wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java.sh $ chmod a+x oab-java.sh $ sudo ./oab-java.sh $ sudo apt-get install sun-java6-jdk # 아래 명령으로 default로 설정된 openjdk에서 sun-java6로 변경 $ sudo update-alternatives --config java
아래 명령으로 정상적으로 java가 바뀌었는지 확인
$ java -version $ javac -version
# sudo ./oab-java.sh란 명령어를 입력하면 다음과 같은 문장이 출력됩니다.
답글삭제oab-java.sh v0.3.1-dev - Create a local 'apt' repository for Sun Java 6 and/or Oracle Java 7 packages.
Copyright (c) Martin Wimpress, http://flexion.org. MIT License
By running this script to download Java you acknowledge that you have
read and accepted the terms of the Oracle end user license agreement.
*
If you want to see what this is script is doing while it is running then execute
the following from another shell:
tail -f /home/kkm123/oab-java.sh.log
[x] Installing Java build requirements | <--- task 캐릭터가 돌아가고 있는중.
여기서 엔터는 죽어도 누르지 마세요. 엔터치면 pid를 찾을 수 없다는 오류가 로그에만 기록되고 계속해서 멈춘 상태가 됩니다.
주의하세요.
현재 되고 있는건지 아닌건지 궁금하시면
# tail -f /home/kkm123/oab-java.sh.log 이 명령어로 확인 할 수 있습니다.