X

Geertjan's Blog

  • July 22, 2013

Official Support for PhoneGap in NetBeans IDE

Geertjan Wielenga
Product Manager

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

Join the discussion

Comments ( 20 )
  • guest Monday, July 22, 2013

    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!


  • Xavier Callejas Tuesday, July 23, 2013

    Great news!


  • Ewald Tuesday, July 23, 2013

    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.


  • Jan Becicka (NetBeans Team) Thursday, July 25, 2013

    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.


  • Simon Wednesday, July 31, 2013

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


  • guest Thursday, August 15, 2013

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


  • m1k0 Thursday, August 22, 2013

    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"


  • guest Sunday, September 29, 2013

    Is GIT also on the path?


  • Tommy Surbakti Tuesday, October 1, 2013

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


  • Ravindra Tuesday, October 22, 2013

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


  • Geertjan Tuesday, October 22, 2013

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


  • guest Sunday, November 3, 2013

    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.


  • Geertjan Sunday, November 3, 2013

    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)?


  • Syed Saturday, November 16, 2013

    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)!


  • guest Thursday, February 27, 2014

    Why did netbeans change from phonegap to cordova?


  • Geertjan Thursday, February 27, 2014

    It's the same thing.


  • Thomas Thursday, March 6, 2014

    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. :-(


  • Adeyemi Kayode Sunday, April 20, 2014

    sir, pls can u send me the step by step method on how to set it up cos am avin a serious issue in other IDE but i love programming in netbeans bcos it make my code luk so smart and presentable, i will like to hear from you through email or in this your same blog. thank in advance.


  • Geertjan Monday, April 21, 2014
  • guest Thursday, January 21, 2016

    Hi,

    How to check with iOS 9 version using above sample application in NetBeans?


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha