You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Pre-Requisites

Download and install following:

Following instructions  assume that you already have an account on https://github.com and you are familiar with basic GIT operations as fork (making copy of project under your account) and clone (making your local development copy)

Getting Started

If you plan to submit changes, then you should fork the Apache NetBeans GitHub repo, to do this please follow the steps here on GitHub - just replace the example repository for https://github.com/apache/incubator-netbeans.  If you don't plan to submit changes and want to just browse the codebase beforehand, you can always clone the main GitHub repository, but you won't be able to submit pull requests from this.

 

In the examples below, if you have created a fork then please clone your fork and not the apache repository.

StepWithout NetBeansWith NetBeans
Clone

Clone the Apache NetBeans Git Repo (https://github.com/apache/incubator-netbeans)

$ git clone git@github.com:apache/incubator-netbeans.git
$ cd incubator-netbeans

If you are cloning your own fork, then the clone command would be different, please have a look at your fork in GitHub.

Clone the Apache NetBeans Git Repo (https://github.com/apache/incubator-netbeans)

If you are cloning your own fork, then the clone command would be different, please have a look at your fork in GitHub.

Build
$ ant
Run
$ ant tryme
Debug

You can pass java options through the netbeans launcher via -J<javaarg>. This will run netbeans with debugging enabled:

$ /bin/netbeans -J-agentlib:jdwp=transport=dt_socket,suspend=y,server=y,address=9009

To run a freshly build netbeans you can invoke:

$ ant -Ddebug.port=9009 tryme

This will start the build IDE with a test userdir and it will wait on tcp port 9009 for debugger connections.


  • No labels