Set up Arduino Development enviorment on Netbeans.

Hi,
I am new in ubuntu and ardunio. I want to develop the set up of Arduino development environment on net beans.
After searching on google i find out the link.
Arduino Development Using NetBeans IDE - DZone Java.

By the help of this i am using the arduino plugin. But it still give error when i am try to compile the simple code.
Plz guys help me out How i have to Develop the set up on Netbeans so that i can run the example which given by Arduino.
Plz help me asap.

Thankx

Hi ,
After develop the Ardunio plugin … When i am running the example on netbeans its give error about avr-g++ compiler.
Plz help.