To install jdk in Linux (jdk file with the extension. bin:
Cd/usr/lib // open the/usr/lib directory
Sudo mkdir jvm // create the directory jvm
Sudo chmod 777 jvm // modify jvm Permissions
Cd/usr/lib/jvm // open jvm
Sudo cp jdk-6u33-linux-i586.bin/usr/lib/jvm // copy the jdk-6u33-linux-x64.bin to the jvm directory, manually copy the line should not be required to execute this command
Sudo chmod 777 jvm jdk-6u33-linux-x64.bin // modify jdk-6u33-linux-x64.bin Permissions
Sudo sh jdk-6u33-linux-i586.bin // unzip the installation jdk-6u33-linux-i586.bin
Sudo gedit/etc/environment
/Etc/environmentPATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: /usr/games:/usr/lib/jvm/jdk1.6.0 _ 33/bin"
JAVA_HOME = "/usr/lib/jdk1.6.0 _ 33" CLASSPATH = "/usr/lib/jdk1.6.0 _ 33/lib" // configure Environment Variables
Sudo update-alternatives -- install/usr/bin/java/usr/lib/jvm/jdk1.6.0 _ 33/bin/java 300
Sudo update-alternatives -- install/usr/bin/javac/usr/lib/jvm/jdk1.6.0 _ 33/bin/javac 300
Sudo update-alternatives -- config java
Ps: jdk-6u33-linux-i586.bin for jdk version, according to your download change this name, jdk1.6.0 _ 33/bin is extracted install the directory generated after the jdk-6u33-linux-i586.bin, according to the specific situation to modify...