Install Environment

Install the components of the development environment:

Install Java SE

If you are not using the minimum Java platform version in your environment, go to http://java.sun.com/javase/downloads/index.jsp and update to this version.

Install NetBeans Web Bundle

To install the NetBeans Web bundle, including the GlassFish server:

  1. Download the most recent release of NetBeans from the NetBeans Download page.
    Be sure to select the Web & Java EE bundle, which includes the GlassFish server.
  2. Install the NetBeans and GlassFish packages on your machine.
    Use the Installation Instructions provided at the NetBeans Download page.
    Note: The NetBeans Web bundle also includes the Apache Tomcat server. Do not install this server.

Install and Set Up PostgreSQL

Install PostgreSQL and the pgAdmin utility. If you encounter problems installing PostgreSQL, be sure to check the Dataverse Network Forum for platform-specific information that might help you resolve issues.

Note: The JDBC driver used with PostgreSQL is packaged with the DVN core code.

To install and set up the DBMS:

  1. Download and install PostgreSQL. Downloads for most platforms are available on the Downloads binary page.
    Specify the PostgreSQL service account and super-user account passwords as secret.
    Refer to the PostgreSQL FAQ and the PostgreSQL Installer for Windows documentation if you need assistance installing this component.
    Note: If you install to a Windows environment, be sure to install PostgreSQL as a service, which is the default. If you do not, you must start and stop the DBMS manually to use the DVN development environment.
  2. Download and install the appropriate pgAdmin tool from the Graphical Clients list on the PostgreSQL Downloads page.
    Note: If you install to a Windows environment, the pgAdmin tool in included in the PostgreSQL download.
  3. Start the PostgreSQL database server, open the pgAdmin tool, and connect to the PostgreSQL database server at http://localhost:5432.
  4. Create a New Login Role.
    Set the username to dvnApp and the password to secret. Accept all default settings.
  5. Create a new database.
    Set the database name to <your database name>, and the owner to dvnApp. Accept all default settings.
  6. Restart the server.

Install SVN Client and Check Out DVN Code

Install an SVN client:

  1. Install an SVN client compatible with the SourceForge.Net repository. Refer to the SourceForge.Net wiki pages for more information.
    NetBeans is set up to work with Subversion from within the IDE. You can locate the SVN client downloads from the NetBeans website Docs & Support menu. For example, for NetBeans IDE 6.1 refer to http://www.netbeans.org/kb/60/ide/subversion.html.
  2. Register a user account at SourceForge.net.
    You can check out the DVN Project without registering an account, but you cannot contribute to the code. If you check out the project without an account and then register, SourceForge will not accept your contributions until you check out the Project by using your account.
  3. Check out the DVN Project packages.
    In NetBeans, use the Subversion Checkout wizard and perform a checkout:

    If you choose to check out the DVN project packages from a command line, enter the following:
    svn co <https://dvn.svn.sourceforge.net/svnroot/dvn dvn
    Note: Make sure that you check out the DVN-EAR release that uses the GlassFish version which you installed with NetBeans.