Ubuntu, PHP, NetBeans - part II

Posted by Petr Pisl on Jul 06 2008, 10:40:34 PM CEST

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 :

  1. From Application menu choose Add/Remove... item



  2. The Add/Remove Application dialog is open. In Show combo box select All Available Applications.



  3. Write "Sun Java" in the Search box and Sun Java 6 Runtime should be displayed.



  4. Check Sun Java 6 Runtime and click on Apply Changes button. Durig the installation you will be prompted to accept the licence.

  5. 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.



Category: Tips & Tricks | Permalink | Comments [5]

Trackback URL: http://blogs.sun.com/netbeansphp/entry/ubuntu_php_netbeans_part_ii
Comments:

Hello,

I have a question...

What if I wanted to add a link to an external program like Adobe AIR runtime compiler? How can I do it?

PS. It would be great it Netbeans supported a AIR Project type.

Posted by xwisdom on July 07, 2008 at 08:28 PM CEST #

Hi xwisdom,

I don't expect that Sun will invest into a support of AIR. You know that this is basically direct competitions to the JavaFX. On the other hand NetBeans are open source and there is many plugins from community. So maybe someone from community will write it.

> What if I wanted to add a link to an external program like Adobe AIR runtime compiler?

I don't understand exactly, what you mean. Do you want to run it as an external process?

Thanks,
Petr

Posted by Petr Pisl on July 08, 2008 at 01:31 PM CEST #

I don't see any instructions for the actual install of the netbeans php software. I'm a total ubuntu newbie, and have no idea how to do it. I've gotten everything else in your instructions done, but no clue on how to do the actual netbeans ide. Thanks,
jfh

Posted by jfherring on October 26, 2008 at 08:04 PM CET #

Hi jfherring,

probably I should continue in series:). There are fast steps:

Download the NetBeans for PHP from NetBeans site. Currently there is available release candidate: http://download.netbeans.org/netbeans/6.5/rc/

Download the php distro for linux and run the installer.

Let me know, if it helps you.

Regards,
Petr

Posted by Petr on October 28, 2008 at 05:28 PM CET #

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.

Posted by links of london on October 30, 2009 at 09:34 AM CET #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed