Build Process
(InstantP2P Demo )

The following sections describe the requirements and actions that you need to build the InstantP2P (IP2P):

Build Requirements

JXTA InstantP2P has been built successfully on the following operating systems:

Before you begin building, you must ensure that your system satisfies the recommended software and hardware requirements for the type of system you are working on.

Linux

Build Requirements for Linux
Software Requirements Hardware Requirements
A PC with the following specifications:
  • Intel Pentium II
  • 32/64 MB RAM
  • 5 MB free disk space

Solaris

Build Requirements for Solaris
Software Requirements Hardware Requirements
For Solaris/x86 same requirements as for Linux. For Solaris/Sparc a Sparc Ultra 2 with the following specifications:
  • 128 MB RAM
  • 5 MB free disk space

Win32

Build Requirements for Win32
Software Requirements Hardware Requirements
A PC with the following specifications:
  • Intel Pentium II
  • 64 MB RAM
  • 5 MB free disk space

Build Flags

Following build flags can be used to set customized values.
Build Flags
Flag Description Default Value
JAVA_HOME Path to JDK home to be used for compilation undefined - defaults to one in your PATH
JXTACORELIB JXTA Core lib to be used ../../../platform/binding/java/classes/jxta.jar
JXTACMSLIB JXTA Content Management System lib to be used ../../../instantp2p/binding/java/classes/jxta.jar
JXTASECLIB jxtasecurity.jar - JXTA Security lib to be used ../../../security/binding/java/classes/jxtasecurity.jar
CLASSPATH Class Path to be used ./classes

Build Options

Following table specifies the build options for InstantP2P project.
Build Options
Option Action
compile Compile all Java Classes
All Compile all Java Classes - same as compile
jar Compile and package Java Classes into a jar file (instantp2p.jar)
Places classes and jar files under instantp2p/binding/java/classes
pkg Compile and package Java Classes and selected docs into instantp2p.zip for easy download
Places zip files under instantp2p/binding/java/pkg
javadoc Generate JavaDocs for all the java classes
clean Delete classes, jar file and packages.
clobber Delete classes, jar file and packages - same as clean.

Building IP2P Project

You can use a prebuild version of JXTA Core, JXTA Security and JXTA CMS to build InstantP2P demo. Having a prebuild version is necessary because the IP2P demo has dependencies on the JXTA Core, JXTA Security and JXTA CMS. IP2P builds all the modules required for InstantP2P demo. This includes "File Sharing", "Secured/Unsecured Chat and Group Chat" and "Group Management". To build IP2P demo, you must follow these steps:

  1. Download an appropriate build of JXTA core project from the Core Download area. Or Checkout an appropriate snapshot of JXTA Core tree from the Core Downloading sources page and follow the Core build instructions to build core.
  2. Download an appropriate build of JXTA Security project from the Security Downloading area. Or Checkout an appropriate snapshot of JXTA Security tree from the Security Downloading sources page and follow the Security build instructions to build JXTA Security.
  3. Download an appropriate build of JXTA CMS project from the CMS Downloading Files page. Or Checkout an appropriate snapshot of JXTA Core tree from the CMS Downloading sources page and follow the CMS build instructions to build core.
  4. Check out the IP2P demo modules that you want to build from the Jxta.org CVS tree using
    cvs -d :pserver:@cvs.jxta.org:/cvs checkout instantp2p for snapshot or, if you update an already existing copy
    cvs -d :pserver:@cvs.jxta.org:/cvs update instantp2p.
  5. Change directory to instantp2p/binding/java
    cd instantp2p/binding/java
  6. Build IP2P demo with the prebuild version of the JXTA Core, JXTA Security and JXTA CMS, using the (gnu)make tool.
    (gnu)make [build options]
  7. Look for java classes in ./classes directory
    instantp2p.zip, instantp2p.jar in ./pkg directory

Kuldip Singh Pabla
Last modified: Tue Jun 12 11:00:55 PDT 2001