Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Privacy preserving peer-to-peer data sharing
Java C++ CSS HTML C Shell

Merge pull request #82 from wolverine2k/master

Added instructions to compile on Linux/Ubuntu
latest commit d3451f1f90
@willscott willscott authored

README.md

OneSwarm

Building

Mac OS X

  1. Install the developer tools
  2. Install git, ant, and ant-contrib from macports

    • sudo port install git-core
    • sudo port install apache-ant
    • sudo port install ant-contrib
  3. git clone git@github.com:CSEMike/OneSwarm.git

  4. export ANT_OPTS="-Xmx256m"
  5. ant
  6. ant run

Windows

  1. Download and install the latest JDK
  2. Download the ant build tool
  3. Update your JAVA_HOME and ANT_HOME environment variables appropriately:

    • set ANT_HOME=c:\apache-ant (wherever you put it)
    • set JAVA_HOME=c:\jdk1.6.0_25 (wherever you put it)
    • set PATH=%PATH%;%ANT_HOME%\bin
  4. Install misc. ant dependencies

    • cd %ANT_HOME%
    • ant -f fetch.xml -Ddest=system
  5. Install ant-contrib (put the ant-contrib-1.0b3.jar in %ANT_HOME%\lib)

  6. git clone git://github.com/CSEMike/OneSwarm.git

  7. ant
  8. ant run

Linux

  1. sudo apt-get install ant ant-contrib
  2. git clone git://github.com/CSEMike/OneSwarm.git
  3. From OneSwarm directory:
    • ant -lib /usr/share/java
    • ant -lib /usr/share/java run

I have been able to successfully compile with OpenJDK which I recommend to use. But if there are errors/problems, please use the SunJDK as mentioned in the link below.

Testing

ant test or ant junit

Something went wrong with that request. Please try again.