Ubuntu, PHP, NetBeans - part II
By Petr on Jul 06, 2008
In my last entry I have described, how to install PHP, Apache and MySQL in Ubuntu 8.04 from Ubuntu repositories. NetBeans IDE is written in Java, so before installing NetBeans you have to install Java. This entry is about how to install Java environment in Ubuntu.
You can find a few Java environment like openJDK, Cacao or Kaffe in the default Ubuntu repositories. I have tried to run NetBeans on top of openJDK withouth a problem, I haven't try Cacao or others. I suggest to use Sun Java, because NetBeans are tested mainly with Sun Java.
You can download JRE (Java Runtime Environment) or JDK (Java Development Kit) from Sun web. For running NetBeans, JRE is enough. NetBeans supports the latest two releases, so today Java 1.5 and Java 1.6 are supported. Java 1.6 uses native look and field and on the pictures below you can compare how NetBeans looks, if there are running on top of Sun Java 1.5 and Sun Java 1.6 .
There steps how to install Sun Java 1.6 :
From Application menu choose Add/Remove... item
The Add/Remove Application dialog is open. In Show combo box select All Available Applications.
Write "Sun Java" in the Search box and Sun Java 6 Runtime should be displayed.
- Check Sun Java 6 Runtime and click on Apply Changes button. Durig the installation you will be prompted to accept the licence.
- You can check, whether the JRE is installed correctly. Open a terminal and write command java -version. You should see similar output as on the picture.