Problem: Package sun-java6-jdk is not available, but is referred to by another package.
Reason: The sun-java6-jdk is no longer in ubuntu's main repository, or in canonical-archive repository, (which you are suggested on Android website.)
Solution: Use ppa
Command:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk
Switch between different versions of jdk
sudo update-alternatives --config java
Then choose the one you'd like.
Enjoy!
thanks. This helps a lot!
ReplyDelete