OpenDS in NetBeans

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.

  1. Select File > New Project > Java Project with Existing Ant Script.

    New Project > Java Project with Existing Ant Script
  2. 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.

    Location is the opends folder
  3. Accept the defaults for the next screen, Build and Run Actions.

    Accept defaults for Build and Run Actions
  4. 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.

    You need src/server; plus, tests are considered Source Packages
  5. In the Java Sources Classpath, I cleared Separate Classpath for Each Source Package Folder. I added .jar files from ext/ and lib folders.

    Adding .jars from ext/ and lib/
  6. After I clicked finished, NetBeans created the project. I am ready to go with OpenDS.

    Ready to go
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Mark Craig writes about Directory Services products and technologies. The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today