OpenDS in NetBeans
By mcraig on Mar 05, 2007
This entry shows you how to set up OpenDS in NetBeans. In a nutshell, you run the File > New Project > Java Project with Existing Ant Script wizard and you are done. But you do not have to take my word for it. I have screenshots.
Before you start, download and install NetBeans IDE, http://www.netbeans.info/downloads/index.php. You also want at least Java SE JDK version 5 or 6.
Also, grab the OpenDS source code. You need subversion to check out the code. For a very short explanation plus copy-paste commands, see OpenDS Subversion Access Information.
Here is how to set up OpenDS in NetBeans once you have the software.
Select File > New Project > Java Project with Existing Ant Script.
For the Location field browse to the opends folder where you checked out the OpenDS code with subversion.
NetBeans 5.5 found the rest of the field values after I pointed it to this Location.
Accept the defaults for the next screen, Build and Run Actions.
In the Source Package Folders, select at least the src/server folder.
As I am thinking of writing an OpenDS plugin and will therefore need to write unit tests. So I also selected tests/unit-tests-testng/src/server. Notice that the tests folder shows up in the Source Package Folders list. NetBeans appears to expect JUnit tests in the Test Package Folders list, whereas OpenDS unit tests are written with help from TestNG.
In the Java Sources Classpath, I cleared Separate Classpath for Each Source Package Folder. I added .jar files from ext/ and lib folders.
After I clicked finished, NetBeans created the project. I am ready to go with OpenDS.