![]() * 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1051 auto modeġ /usr/lib/jvm/jdk1.6.0_31/bin/java 1 manual modeĢ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1051 manual mode Read through the list and find the number for the Oracle JDK installation (/usr/lib/jvm/jdk1.6.0_26/bin/java) There are 2 choices for the alternative java (providing /usr/bin/java). You will see output similar to the following (although it’ll differ on your system). "/usr/lib/jvm/jdk1.6.0_31/bin/javaws" 1 sudo update-alternatives -config java "/usr/lib/jvm/jdk1.6.0_31/bin/javac" 1 sudo update-alternatives -install "/usr/bin/javaws" "javaws" \ "/usr/lib/jvm/jdk1.6.0_31/bin/java" 1 sudo update-alternatives -install "/usr/bin/javac" "javac" \ sudo update-alternatives -install "/usr/bin/java" "java" \ The next 3 commands are split across 2 lines per command due to width limits in the blog’s theme. sudo mkdir /usr/lib/jvm sudo mv jdk1.6.0_31 /usr/lib/jvm The jvm directory is used to organize all JDK/JVM versions in a single parent directory. After downloading, open a terminal, then enter the following commands.Ĭd ~/Downloads chmod +x jdk-6u31-linux-圆4.bin.Download the JDK to your ~/Downloads directory. ![]() I have a 64 bit version of Ubuntu 12.04 LTS installed, so the instructions below only apply to this OS. Mainly I have changed the JDK from 1.6.0_26 to 1.6.0_31 as this is the recommended JDK for CDH4. This is an update to an older version of this post. ![]() The answer is that Oracle JDK 6.0 update 31 is the JDK recommended by Cloudera when installing CDH4 (Cloudera Distribution Hadoop v4). The first question is why are we installing an old JDK. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |