Official Support for PhoneGap in NetBeans IDE

PhoneGap is a free and open source framework that allows you to create cross-platform mobile applications with standards-based Web technologies, such as HTML, JavaScript, and CSS.

NetBeans IDE 7.4, with its Beta released a few days ago, supports PhoneGap. For free. Without the need to install plugins. Because the NetBeans IDE free PhoneGap support is provided out of the box when you install the Java EE or All distributions of NetBeans IDE 7.4.

Here's a sample PhoneGap app deployed in my Android emulator:

The IDE lets you register artifacts for Android and iOs:

A complete sample is available to get you started, showing you how to write rich mobile applications in HTML5 and Javascript using JQuery, PhoneGap with the Geolocation API and Contacts API, together with the Google Maps API. Since this is developed via PhoneGap, the very same code can be tried out and deployed on both iOS and Android devices.

A blank project skeleton can also be created:

A PhoneGap application is just a flavor of an HTML5 application, so you can turn any HTML5 application into a PhoneGap application very easily:

Deployment to various devices can be set globally via the new browser switcher in the toolbar or per-project in the Project Properties dialog as shown below:

Reference: http://wiki.netbeans.org/NewAndNoteworthyNB74#PhoneGap

Comments:

This is very cool. For myself, an IDE option for PhoneGap is preferable to command-line, but Eclipse was a pain to play around with. Everyone is different, of course, but I prefer NetBeans so this is good news to me!

Posted by guest on July 22, 2013 at 07:31 AM PDT #

Great news!

Posted by Xavier Callejas on July 23, 2013 at 09:37 AM PDT #

After playing around with the PhoneGap support a bit, I have to say, it's added another reason why it's a pleasure working in NetBeans.

Well done to the team for adding this support, NetBeans just keeps getting better and better with each release.

Posted by Ewald on July 23, 2013 at 12:49 PM PDT #

NetBeans also supports debugging of PhoneGap applications on iOS Simulator and even on iPhone and iPad (you must have valid iOS developer certificate). Of course these features are only for Mac users.

Posted by Jan Becicka (NetBeans Team) on July 25, 2013 at 05:18 AM PDT #

This great! But how to I compile the installation package so I install the app on my android phone?

Posted by Simon on July 31, 2013 at 05:31 AM PDT #

Really love Netbeans. Anyways hope Netbeans will keep improving other tools too like php and ruby.

Posted by guest on August 14, 2013 at 09:29 PM PDT #

Simple question - How to install Cordova 3.0.0 in order to play with netbeans?
I have installed cordova and from CLI everything works
But how to integrate it with netbeans?
If I extract release archive and point out... netbeans show "PhoneGap SDK not found"

Posted by m1k0 on August 22, 2013 at 04:16 AM PDT #

Is GIT also on the path?

Posted by guest on September 29, 2013 at 12:55 AM PDT #

I've install 7.4 RC1, but there's no Phonegap SDK on mobile platform tab.

Posted by Tommy Surbakti on October 01, 2013 at 02:08 AM PDT #

when i install netbean i got cordova in place of phonegap.

Posted by Ravindra on October 22, 2013 at 05:10 AM PDT #

That's right. Things changed since this blog entry was written. But Cordova is the same thing as PhoneGap.

Posted by Geertjan on October 22, 2013 at 08:30 AM PDT #

It says it is supported out of the box but clearly isn't you have to go through the bullcrap of installing Cordova.

The idea of something working out of the box is that you do not have to do all the initial steps just to get something working.

Rubbish.

Posted by guest on November 03, 2013 at 08:12 AM PST #

We also support SASS and LESS out of the box, but yes, you do need to install those products. The alternative is that we bundle all those products with NetBeans IDE. Does that seem like a sane solution to you, a billion MB download of NetBeans IDE (aside from the legal issues etc)?

Posted by Geertjan on November 03, 2013 at 09:55 AM PST #

Thank you for this NetBeans distribution. NetBeans was always a favorite of mine. I switched languages and haven't used NetBeans for about two years but I am certainly going to try this latest PhoneGap distribution. Eclipse is fine, I don't bash it, but NetBeans UI, the Swing tools for Java, GUI editor etc etc just make it a powerful, but easy-to-use tool. Great piece of software? Now to go make a donation....Keep it up guys (gals)!

Posted by Syed on November 16, 2013 at 11:36 AM PST #

Why did netbeans change from phonegap to cordova?

Posted by guest on February 26, 2014 at 04:47 PM PST #

It's the same thing.

Posted by Geertjan on February 26, 2014 at 10:26 PM PST #

I like to change my IDE from "phonegap on eclipse" to netbeans.
So I installed NetBeans 7.4 and phonegap 3.4 but NetBeans only provides cordova projects, no phonegap.

So my question is: can I use NetBeans in combination with cordova to write HTML5 code, build that into an app (.apk) and run that application on an connected or virtual device (like it's possible with eclips).

Right now I only found the possibility to create HTML5 webcontent in order to run in local installed webbrowsers....

By the way: "Creating Cordova Resources..." hangs/never comes to an end, so I have to kill the application. :-(

Posted by Thomas on March 05, 2014 at 11:56 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today