Versions Compared

Key

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

...

Download and install following:

  • Java SE Development Kit (http(see README for version requirements; https://wwwfoojay.oracle.comio/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmldownload/ can help to find a JDK)
  • IDE - NetBeans  recommended recommended (note: if you install NetBeans you are ready to go since you'll also get bundled Ant and GIT, so no further installation and configuration will be required, so you can continue from Getting Started section)
  • Apache Ant (https://ant.apache.org/)
  • GIT (https://git-scm.com/downloads)

Following instructions  assume assume that you already have an account on 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)

...

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)

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


Run


Code Block
languagebash
$ ant tryme


Debug

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

Code Block
languagebash
titleStart pre-built NetBeans and wait for debugger to attach
$ /bin/netbeans
-J-agentlib:jdwp=transport=dt_socket,suspend=y,server=y,address=9009

To run a freshly build netbeans you can invoke:

Code Block
languagebash
titleRun development version through Ant waiting for debugger
$ 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.



...