Thursday Nov 01, 2007

PHP coming soon on a NetBeans installation near you

Alexei and the team have been working on a PHP plugin for NetBeans 6. I am hoping they'll be able to release it on the NetBeans 6 update center in early December. The bits will be young, beta quality at best, however I am experimenting with PHP support in NetBeans and I like what I see so far.

The first thing one may do is make sure to get a runtime stack that supports the deployment of PHP applications. Given that many of these apps will have a database backend, this calls for something like MySQL. You'll also need a matching web server, and apache comes to mind :-). Here are few easy steps to get started:


  1. SSH Server (for remote access): sudo apt-get install ssh
  2. Database Server: sudo apt-get install mysql-server
  3. Apache HTTP Server: sudo apt-get install apache2
  4. PHP for Apache HTTP Server: sudo apt-get install php5
  5. MYSQL for Apache HTTP Server: sudo apt-get install libapache2-mod-auth-mysql
    sudo apt-get install php5-mysql

Once you install the PHP plugin in NetBeans, use the  "Services" tab to configure the document root for Apache web server installation. On my Ubuntu installation the document root is /var/www/apache2-default. You will likely have to change the permission for the document root, since NetBeans is usually install in user mode and apache required sudo.

To test everything, just create a new PHP Project in the IDE and add the following line of code: phpInfo(); in the default file. Next deploy you page and in your browser look for something like: http://localhost/apache2-default/index.php 

Monday Oct 22, 2007

NetBeans ships version 6 beta 2

NetBeans ships beta 2 of the upcoming 6.0 release, today (10/22/07). New NetBeans users may want to start on the docs page, while current users could just download the bits to get the latest bug fixes. If you are new to Java start here, you'll see a variety of online courses - all using NetBeans. Also, I highly recommend subscribing to the mailing lists (NetBeans has developers around the world: St Petersburg - Russia, Prague - Czech Republic, and the US, you'll likely be able to get help around the clock).

Friday Apr 20, 2007

Java 6 available on Ubuntu Feisty via Multiverse

The good news:

  • Java 6 is now available on Ubuntu 7.04 (Feisty Fawn) from the multiverse repositories
  • A couple of simple commands will install Java 6 on your system:
    1. Get and install Java: sudo apt-get install sun-java6-jdk
    2. Make Java 6 default: sudo update-alternatives --config java
    3. Edit sudo vi /etc/jvm the first entry should point to your JDK /usr/lib/jvm/java-6-sun
    4. Optionally you can install the jre and firefox plugin: sudo aptitude install sun-java6-jre sun-java6-plugin

Of course, you'll be better off following the documentation available on the Ubuntu website.

The not so good news:

  • Java 6 is still not default on Ubuntu 7.04 (after installing the OS you get 1.4.2)
  • You can install Java 6 from the Applications | Add/Remove, however you have to fish for it and "Show" All Available Applications when you search for it

In addition to Java, Glassfish v1 and NetBeans 5.5 are also available from the multiverse repositories. IMHO this software stack makes Ubuntu very competitive vis-a-vis RedHat / JBoss. I'll blog some other time on this topic. 

Thursday Apr 19, 2007

The answer is NetBeans, what is your question

Here is a preview (take this with a grain of salt) of the NetBeans 6 preview at Java One

Most of the functionality that you used to see in Java Studio Creator, Java Studio Enterprise has been open sourced and it is now available in NetBeans. So far there are three profiles (in absence of a better description) available: 

  • Basic ~ Java SE
  • Standard ~ Basic + Java EE (this calls for Glassfish since you'll need a container for deployment)/ME
  • Full ~ Standard + SOA, UML, Ruby
If you want to see all the new & cool features of the IDE, just register for NetBeans Day @ Java One. You'll have a chance to meet many of the key developers and most importantly, you have the ability to influence the future of the product.



« February 2016