You have to trick it into building the 32 bit package: DEB_BUILD_GNU_TYPE=i486-linux-gnu DEB_BUILD_ARCH=i386 fakeroot make-jpkg jdk-6u7-linux-i586.bin deb package from the binary you downloaded. Install java-package: sudo apt-get install java-package At the time this was jdk-6u7-linux-i586.bin for me. bashrc and other scripts every incremental jdk upgrade.Įnvironment variables you might care about: JAVA_LIBDIRįirst, download the latest 32 bit JDK (not JRE) from Sun. I bother with: export JAVA_HOME=/opt/jdkĪlso, I symlink jdk/ -> jdk1.6.0_3/ because I'm lazy and don't like reconfiguring my. I work on the command line a lot, so it's an okay solution for me. I export some vars for the other one when I need it. I let the package manager handle my primary install. The point is: it's easier to use Ubuntu's package manager to maintain exactly one version of a package like java. You don't even have to use apt-get just manually maintain both packages on your system (see next heading). Or decide which one you want to have automatic updates. export paths depending which one you wantĭecide which version you'll mostly be using.Somewhat harder (read: tedious) is switching between versions at a whim. It's super easy to have multiple versions of Java installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |