INSTALLING JAVA (JDK/JRE)
Here is the updated version used to install Java's JDK 6u1 on Edgy. The method doesn't use packages, opting to use Sun's .bin file instead. Visit java.sun.com to download their .bin file. You probably want: jdk-6u1-linux-i586.bin.
STEP: Download it to your desktop. Once it's fully downloaded, open a command prompt and execute it like so:
Code:
cd ~/Desktop
sudo chmod +x *.bin
sudo sh ./jdk*.bin
STEP: Executing the .bin file creates a folder on your desktop named jdk1.6.0_01. Rename that folder to Java6u1. Now move that folder to /usr/lib
Code:
sudo mv Java6u1 /usr/lib
STEP: Now add Java to update-alternatives and make it the default like so:
Code:
sudo update-alternatives --install /usr/bin/java java /usr/lib/Java6u1/bin/java 300
sudo update-alternatives --config java
STEP: Don't forget your Java plugin
Code:
sudo ln -s /usr/lib/Java6u1/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins
INSTALLING ECLIPSE
Download eclipse directly from eclipse.org. You probably want: eclipse-SDK-3.2.2-linux-gtk.tar.gz
STEP: Download the file to your desktop. Right-click and extract it. Move it to the directory of your choice. (I use /usr/lib)
STEP: Add links to /usr/bin (edit your paths as necessary):
Code:
sudo update-alternatives --install /usr/bin/eclipse eclipse /usr/lib/eclipse/eclipse 300
sudo ln -s /usr/lib/eclipse/startup.jar /usr/bin
STEP: Add eclipse to the menu:
Right-click Applications -> Edit Menus -> Programming -> New Item ->
Icon: /usr/lib/eclipse/icon.xpm
Name: eclipse
Comment: Launch eclipse
Command: eclipse
INSTALLING NETBEANS
STEP: Grab the Netbeans Tarball (Netbeans-5_5.tar.gz) from netbeans.org. Save it to your desktop. Right-click and extract it.
STEP: Move it to /usr/lib/netbeans
Code:
cd ~/Desktop
sudo mv netbeans /usr/lib/
STEP: Add links to /usr/bin (Edit your paths as necessary):
Code:
sudo update-alternatives --install /usr/bin/netbeans netbeans /usr/lib/netbeans/bin/netbeans 300
STEP: Add netbeans to the menu:
Right-click Applications -> Edit Menus -> Programming -> New Item ->
Icon: /usr/lib/netbeans/nb5.5/netbeans.png
Name: netbeans
Comment: Launch Netbeans
Command: netbeans
---------------------------------------------------------------------------------
The java packages do, in fact, still use the .bin file from SUN. They're just additional wrappers. By installing using the method above, you're able to install multiple JDK's, which can be set as defaults using update-alternatives --config. In addition, you can install older versions of the JDK, which are all available at the SUN site for Java.
Bookmarks