You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



Build Instructions for JSS 3.1.1

Newsgroup: mozilla.dev.tech.crypto

Before building JSS, you need to set up your system as follows:

  1. Follow the Build Instructions for NSS 3.3.1 Release, except check out coreconf with the CVS tag JSS_3_1_1_RTM instead of NSS_3_3_RTM That is, step 3 of the NSS 3.3 build instructions should proceed as follows when you are building JSS 3.1.1:
      cvs co -r NSPRPUB_RELEASE_4_1_2 mozilla/nsprpub 
      cvs co -r JSS_3_1_1_RTM mozilla/security/coreconf
      cvs co -r NSS_3_3_1_RTM mozilla/dbm mozilla/security/dbm
      cvs co -r NSS_3_3_1_RTM mozilla/security/nss
      
  2. To check that NSS built correctly, run all.sh (in mozilla/security/nss/tests) and examine the results (in mozilla/test_results/security/computername.#/results.html.

  3. Install a Java compiler and runtime. JSS supports Java version 1.2 or later.

    (If you really need to run with JDK 1.1, here are some tips on getting it to work.)

Now you are ready to build JSS. Follow these steps:
  1. Switch to the appropriate directory and check out JSS from the root of your source tree.
    cvs co -r JSS_3_1_1_RTM mozilla/security/jss
    
  2. Windows Only: You no longer need to do the shell hack required for building JSS 3.0. You should simply let gmake use shmsdos.exe as its shell, which is the default.
  3. Setup environment variables needed for compiling Java source.

    Unix

      setenv JAVA_HOME /usr/local/jdk1.2.2 (or wherever you installed the JDK)
      
    Windows NT
      set JAVA_HOME=c:\programs\jdk1.2.2 (or wherever you installed the JDK)
      
    Windows NT (Cygnus)
      JAVA_HOME=/cygdrive/c/programs/jdk1.2.2 (or wherever you installed the JDK)
      export JAVA_HOME
      
  4. Build JSS.

    cd mozilla/security/jss
    gmake private_export
    gmake
    

Next, you should read the instructions on using JSS.