Installing NetBeans 6.9 On Lucid Lynx
Its been a long time I didn’t update my blog after all. Its tie to update, event just a simple tutorial.
After im trying the ubuntu 10.04 I want to install the latest netbeans 6.9. Which it needs java virtual machine, so I’d like to install sun-java from local repository first wich I point it to http://kambing.ui.ac.id. I forget the complete package name, so I find it with “apt-cache search sun-java” but it didn’t result anything. I don’t know why, so I ask uncle google as usual, and found an issues that sun-java package moved to partner repository.
For installing sun-java from repository using command “apt-get install”, you need to add
“deb http://archive.canonical.com/ lucid partner” to /etc/apt/source.list then
“sudo apt-get update”
So now you can install sun-java from synaptic or using apt-get. But I prefer for manual installation, because I’ve downloaded the JDK package first from http://java.sun.com .
The package that I downloaded is wich has *.bin extension at the download option. After you download it, give the file access for executed with
“sudo chmod +x jdk1.6.0_20.bin”
command
And then you can execute(extract) it with
“./jdk1.6.0_20.bin”
command.
After it extracted to directory where you place it, now we will copy it to the
“/opt/java”
But you need to create a directory in the “/opt/” directory with
“sudo mkdir /opt/java”
command
Then copy the extracted directory package to the /opt/java directory with
“sudo mv /home/mayo1210/jdk1.6.0_20 /opt/java”
Now we need to register the java path to the Environment Variable. Open the bash.bashrc file in the /etc directory with
“sudo gedit /etc/bash.bashrc”
And add this line to the end of the file
“JAVA_HOME=/opt/java/jdk1.6.0_20
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH”
after that, you may log out, then login again , and try to tun java or javac command. Now we continue to install the netbeans file
with executing the *.sh file
“./netbeans6.9.sh”
and then follow the instruction

eh netbeans bisa buat C sama C++ kan ya?
masa pk turbo c++ yang tahun 95 sih T.T