Building MyRCP..

Recently, I posted a question on NetBeans Forums as I was interested in knowing how to get started with building NetBeans Platform. So, I will be sharing the steps I followed that made my work easy.

Getting Started

Well, I have downloaded the source code for NetBeans Platform 6.X, as well as two JDK’s [1.5.0_22 – 64bit,  1.6.0_18 – 32bit] on Windows 7 – 64bit OS.  Assuming ANT_HOME, JAVA_HOME set properly and added to PATH.

It’s not necessary that you download the same JDK’s, however it’s necessary to have a copy of JDK 5 and 6. Because some versions of NetBeans code are built using JDK 5, while v6.8 can be built using JDK 6.

Steps To Be Followed

  1. Extracted the source code of NetBeans Platform 6.X under MyRCP\NbRcp_6X on my OS.
  2. cd some\path\to\MyRCP\NbRcp_6X
  3. cd nbbuild
  4. ant -Dcluster.config=platform build-platform -Dnbjdk.home=”%JAVA_HOME%”
    ant -Dcluster.config=platform build-platform -Dpermit.jdk6.builds=true
  5. Zip the netbeans directory created under MyRCP\NbRcp_6X\nbbuild directory and extract it wherever necessary/version-control the netbeans directory.

There you go, you have build your own RCP. Go, get started by adding the newly built platform in your NetBeans 6.X Platform Manager.