Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Hacking the NetBeans IDE – 1. Getting NetBeans up and Running from source

49 sec read

NetBeans logo

To help us prepare for our talks for our talks at Oracle CodeOne – “Writing Better Code (Faster) in the Apache NetBeans IDE [BOF4759]” and “Hacking the NetBeans IDE [BOF4760]”, we have been writing some blog posts on NetBeans. We hope you find them useful…

 

Spoiler alert

Since NetBeans is now an Apache project, it is really easy to download and hack the code. Here is a little spoiler to show what we are trying to do (with multiple history selection in the IDE)…..

NetBeans local history

Introduction

There is an excellent tutorial on the NetBeans Apache website showing how to download and run it. If you are used to Maven, you will just need to remember to have a version of Ant installed on your machine which will save some head scratching.

Follow the instructions to build and run with the 2 ant target build-nozip and tryme.

Poking around

Inside your NetBeans project directory, you will find a directory called incubator-netbeans. This contains LOTS of NetBeans modules. For the moment, just open the NetBeans build module.

NetBeans build module

Inside the files view you will find the modules directory where all the code has been built.

modules directory

 

If you delete a module (say Local History) and then run the code with tryme, you will find the feature has gone.

 

Next time I will put it back dynamically without having to recompile all the code…..

 

IDRsolutions develop a Java PDF Viewer and SDK, an Adobe forms to HTML5 forms converter, a PDF to HTML5 converter and a Java ImageIO replacement. On the blog our team post anything interesting they learn about.

Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Leave a Reply

Your email address will not be published. Required fields are marked *

IDRsolutions Ltd 2019. All rights reserved.