Posted by: choxblog on: March 6, 2008
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 :
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.
the first step i already got this:
E: dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem.
March 12, 2008 at 8:24 pm
Cokky…Tenkyuuuu yak tutoriaalnya…It Works…You’re The Best Man !!!
Salam ubuntu’ers ^^