1. Installing LAMP
1.1. sudo tasksel install lamp-server
2. Installing Java Development Kit (JDK)
2.1.mkdir ~/downloads
2.2.cd ~/downloads
2.3. Download the source
SOURCEJ= jdk-7-linux-i586.tar.gz
SOURCEJ= jdk-7-linux-i586.tar.gz
(for x86)
(for x64)
2.4. sudo wget $SOURCEJWEB
2.5. Unpack the source
sudo tar zxfv $SOURCEJ
sudo tar zxfv $SOURCEJ
2.6. Clean up the variable (and the compressed file)
rm –f $SOURCEJ
rm –f $SOURCEJ
2.7. Move the generated content of folder
jdk1.0.7
to a more appropriate directory: sudo mkdir –p /usr/lib/jvm/
sudo mv jdk1.0.7 /usr/lib
/jvm/ 2.8.Check how many alternatives you have:
sudo update-alternatives --config
java 2.9.
To add your new JDK 7 installation into alternatives list:sudo update-alternatives --install /usr/bin/java java /usr/lib
/jvm / jdk1.0.7/jre/bin/java 1
sudo update-alternatives --config
java
java –version
* sudo apt-get python-software-properties
No comments:
Post a Comment