Jdk installation and configuration in ubuntu (simple and quick) 1. Change the hadoop user permission to root, and then run the sudo gedit command to open the file for configuration. Change the permission to root @ ubuntu: nano/etc/sudoers open the file for permission modification, add hadoop ALL = (ALL: ALL) under root ALL = (ALL: ALL) ALL) ALL then save and Exit 2 install jdk in ubuntu create a new jvm package under/usr/lib, move the jdk-6u30-linux-i586.bin to/usr/lib/jvm, then run root @ ubuntu: /usr/lib/jvm chmod 777. /jdk-6u30-linux-i586.bin www.2cto.com root @ ubuntu:/usr/lib/jvm. /jdk-6u30-linux-i586.bin at this time jdk is installed, and then is to configure j Dk. 3. Configure jdk root @ ubuntu:/usr/lib/jvm # sudo gedit/etc/profile to open the profile file, add export JAVA_HOME =/usr/lib/jvm/jdk1.6.0 _ 30 export JRE_HOME =/usr/lib/jvm/jdk1.6.0 _ 30/jre export CLASSPATH =.: $ JAVA_HOME/lib: $ JRE_HOME/lib: $ CLASSPATH export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ JAVA_HOME: $ PATH restart after configuration, after the restart, you can use java or javac to check whether the installation is successful, or use java-version to view the installed java version. Author ghmin