chmod +x jdk-6u33-linux-x64.bin ./jdk-6u33-linux-x64.bin sudo chown root. -R jdk1.6.0_33/sudo mkdir /usr/lib/jvmsudo mv jdk1.6.0_33/ /usr/lib/jvm/ sudo update-alternatives --install "/usr/bin/java" "java" \ "/usr/lib/jvm/jdk1.6.0_33/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" \ "/usr/lib/jvm/jdk1.6.0_33/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" \ "/usr/lib/jvm/jdk1.6.0_33/bin/javaws" 1 sudo update-alternatives --config java sudo update-alternatives --config javac sudo update-alternatives --config javaws
This should be adjusted to the i586 if you're on 32bit.
You can download the bin here. I'm thinking of wrapping that up into a self downloading script that allows you to swap them on the fly, which would be nice for many things not the least of which is android development. It's not that many of us are still doing froyo building, but hey you never know. It'll also determine the arch automatically, clean out the old stuff etc ala slackware slackbuild style, which I'll post a little later.
No comments:
Post a Comment