Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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)

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


Info

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)

Image Modified

Info

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


Build


Code Block
languagebash
$ ant


Image Modified
Run


Code Block
languagebash
$ ant tryme


Image Modified
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.