Developers Manual > Cocos2d-x > Getting Started with Cocos2d-x > How to run cpp-tests on Linux Netbeans

How to run cpp-tests on Linux (NetBeans)

Environment Requirements

Now that this is complete, let's add NetBeans to the setup.

  • Install NetBeans

    It may be necessary to specify --javahome to point to your local JRE install.

    sh --javahome 
  • Create a New Project

     File -> New Project
     Category -> C/C++ and Projects: C/C++ Project With Existing Sources
     Browse and select your source tree
     NetBeans will recognise it is a `CMake` based project and setup the rest for you
     Build Project (from toolbar)
     Run Project (from toolbar)

    The Application should look like this:

NetBeansScreen.png (98.3 kB) slackmoehrle, 2014-05-07 17:42

folderImg.jpg (20.3 kB) slackmoehrle, 2014-05-07 17:44

runningScene.jpg (53.4 kB) slackmoehrle, 2014-05-07 17:44

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.