I’ve made a decision to learn Java again to prepare myself before graduated. Flash back my memory about this programming language (just the basic).
But this time I wanna learn on my ubuntu machine. And this is my a little note, when I was installing Java+Netbeans on Ubuntu.
1. Install the latest JDK
sudo apt-get install sun-java6-jdk
To verify that the installation was successful, execute
java - version
You may get the result like this:
java version “1.6.0_03″
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
To make sure that you use Java from Sun, execute
sudo update-alternatives –config java
Set JAVA_HOME path by add this line at the bottom of file /etc/environment
JAVA_HOME=”/usr/lib/jvm/java-6-sun”
or just execute
export JAVA_HOME=”/usr/lib/jvm/java-6-sun”
And You may include some packages to install, like :
- sun-java6-bin - Contains the binaries
- sun-java6-demo - Contains demos and examples
- sun-java6-doc - Contains the documentation
- sun-java6-fonts - Contains the Lucida TrueType fonts from the JRE
- sun-java6-jre - Contains the metapackage for the JRE
- sun-java6-plugin - Contains the plug-in for Mozilla-based browsers
- sun-java6-source - Contains source files for the JDK
2. Download the latest Netbeans with ‘All’ version (remember the file extension is *.sh), from this.
3. Install Netbeans (ex: netbeans-6.0.1-ml-linux.sh)
sh netbeans-6.0.1-ml-linux.sh
This will triger the netbeans installer and just follow the instructions to complete the installation process.















