Configure NetBeans

After you install the DVN development environment, configure the NetBeans IDE with project-specific settings for the DVN. Also see the GlassFish server configuration.

To configure NetBeans, open the IDE and perform the following:

  1. If you updated your Java platform, use the Java Platforms Tool and add the required <JDK version> used in the DVN-EAR project.
  2. Use the Plugins Tool to install the following from the list of Available Plugins:
    • Facelets Support
    • Facelets Library 1.1.14
  3. Set the DVN-EAR project as the main project.
  4. Configure the remaining NetBeans components. See the topics listed below.

To check that your environment is configured properly, perform a build for the main project, DVN-EAR. Resolve any errors before you continue.

Complete the following NetBeans configurations before you build the main project:

Configure the dvn-WEB Class Library

Use the Library Tool and add a new class library, dvn-WEB, with the following 14 classpaths:

  • <SVN>/lib/commons-beanutils.jar
  • <SVN>/lib/commons-codec-1.3.jar
  • <SVN>/lib/commons-collections-3.2.jar
  • <SVN>/lib/commons-digester-1.7.jar
  • <SVN>/lib/commons-el.jar
  • <SVN>/lib/commons-httpclient-3.0.1.jar
  • <SVN>/lib/commons-io-1.4.jar
  • <SVN>/lib/commons-lang-2.4.jar
  • <SVN>/lib/commons-logging-1.1.jar
  • <SVN>/lib/harvester2.jar
  • <SVN>/lib/log4j-1.2.12.jar
  • <SVN>/lib/oaicat.jar
  • <SVN>/lib/recaptcha4j-0.0.7.jar
  • <SVN>/lib/xalan.jar

Configure the dvn-EJB Class Library

Add a second new class library, dvn-EJB, with the following 17 classpaths:

  • <SVN>/lib/commons-codec-1.3.jar
  • <SVN>/lib/commons-httpclient-3.0.1.jar
  • <SVN>/lib/commons-io-1.4.jar
  • <SVN>/lib/commons-lang-2.4.jar
  • <SVN>/lib/datax.jar
  • <SVN>/lib/handle.jar
  • <SVN>/lib/harvester2.jar
  • <SVN>/lib/jhove-handler.jar
  • <SVN>/lib/jhove-module.jar
  • <SVN>/lib/jhove.jar
  • <SVN>/lib/license.jar
  • <SVN>/lib/log4j-1.2.12.jar
  • <SVN>/lib/lucene-core-2.3.2.jar
  • <SVN>/lib/marc4j.jar
  • <SVN>/lib/nesstar_api.jar
  • <SVN>/lib/NesstarHarvester.jar
  • <SVN>/lib/normalizer.jar
  • <SVN>/lib/oaicat.jar
  • <SVN>/lib/parser.jar
  • <SVN>/lib/REngine.jar
  • <SVN>/lib/Rserve.jar
  • <SVN>/lib/VDCNet-jaxb.jar
  • <SVN>/lib/xalan.jar

Configure the dvn-Ice Class Library

Add another new class library, dvn-Ice, with the following 12 classpaths:
  • <SVN>/lib/icefaces/backport-util-concurrent.jar
  • <SVN>/lib/icefaces/commons-beanutils.jar
  • <SVN>/lib/icefaces/commons-collections.jar
  • <SVN>/lib/icefaces/commons-digester.jar
  • <SVN>/lib/icefaces/commons-discovery.jar
  • <SVN>/lib/icefaces/commons-fileupload.jar
  • <SVN>/lib/icefaces/commons-logging.jar
  • <SVN>/lib/icefaces/el-ri.jar
  • <SVN>/lib/icefaces/icefaces.jar
  • <SVN>/lib/icefaces/icefaces-comps.jar
  • <SVN>/lib/icefaces/icefaces-facelets.jar
  • <SVN>/lib/icefaces/krysalis-jCharts-1.0.0-alpha-1.jar

Configure the DVN-WEB Project

Set up the DVN-WEB project properties:

  1. Configure the Sources category as follows:

    • Source/Binary Format is JDK 5. This is a required setting, regardless of the JDK version used in your environment.
    • Encoding is UTF-8.
  2. Configure the Libraries category to use Java Platform <JDK version>.
  3. Add the following compile-time Libraries:
    • JSF1.1/1.2 support (Package)
    • DVN-ejb - dist/DVN-ejb.jar (Package)
    • dvn-WEB (Package)
    • dvn-Ice (Package)
  4. Add the following Build category Packaging options, and set
    WEB-INF/lib as the path in the WAR for all of them:

    • dvn-WEB
    • dvn-Ice
    • JSF1.1/1.2 support
    • Exceptionhandler-runtime

Configure the DVN-EJB Project

Set up the DVN-EJB project properties:

  1. Configure the Sources category as follows:

    • Source/Binary Format is <JDK version>.
    • Encoding is UTF-8.
  2. Configure the Libraries category to use Java Platform <JDK version>.
  3. Add the compile-time Library dvn-EJB (Package).