"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects." (Robert A. Heinlein)

Monday, 23 February 2009

EEEBuntu: Restoring the Java development environment

After installing the operating system the second step in building up my EEEBuntu netbook is preparing a Java development environment by installing Java JDK, Netbeans and Apache Tomcat.
Java JDK installation:
EEEbuntu comes with  OpenJDK already installed, but I prefer having also Sun JDK installed. Java developer kit installation is done by terminal using apt-get command:
sudo apt-get install sun-java6-jdk
then Sun jdk is selected as default jdk by typing the command:
sudo update-java-alternatives --set java-6-sun

Netbeans installation
I first downloaded Netbeans 6.5 from here. I did choose to download the smallest version available to save disk space. I'll add new modules when I'll need them.
I enabled the execute flag in the downloaded file and launched it:
chmod +x netbeans-6.5-ml-javase-linux.sh
sudo ./netbeans-6.5-ml-javase-linux.sh
Netbeans installer started and I simply had to agree the license and choose the installation path.
Once the installation was completed Netbeans icon automatically appeared in  EEEBuntu graphical interface.
Apache Tomcat installation
I downloaded Tomcat archive from here. Then I copied in the destination directory and extracted it:
sudo cp apache-tomcat-6.0.18.tar.gz /opt/
cd /opt
sudo tar -zxvf apache-tomcat-6.0.18.tar.gz
Since I installed tomcat on the EEEPC only for development purpose I didn't care about creating a specific user for it. So I simply changed the owner of the installation directory to my own user.
sudo chown --recursive maxx:maxx /opt/apache-tomcat-6.0.18
At last I simply started Tomcat by typing:
cd apache-tomcat-6.0.18/
 and verified it was running at its default address (http://localhost:8080/)

No comments :

Post a comment