-
Notifications
You must be signed in to change notification settings - Fork 35
Building Oneswarm on Fedora
List of packages needed for Oneswarm that are not on CSE Support Linux:
gitk
ant
ant-nodeps
also make sure you have: ant-optional, ant-docs, ant-contrib
Sun jdk (see below)
Getting Sun Java:
Install GNU java (both base and devel) through yum
Get Sun java JDK (non rpm version) from http://www.oracle.com/technetwork/java/javase/downloads/index.html
Make the bin file executable.
Ex: chmod a+x jdk-6u22-linux-i586.bin
Run it.
Ex: ./jdk-6u22-linux-i586.bin
Move it somewhere sensible.
Ex: mv jdk1.6.0_22/ /usr/lib/
Edit your ~./bashrc or ~./bash_profile to set JAVA_HOME.
Ex: export JAVA_HOME="/usr/lib/jdk1.6.0_22/", then do source ./bashrc
Let alternatives know about Sun java. You should only need to change the 3rd (path) option.
Ex: /usr/sbin/alternatives --install /usr/bin/java java /usr/lib/jdk1.6.0_22/bin/java 20000
Set Sun java as the default java using alternatives
Ex: /usr/sbin/alternatives --config java, then type the number of Sun java+enter
Do the same for Sun javac.
Ex: /usr/sbin/alternatives --install /usr/bin/javac javac /usr/lib/jdk1.6.0_22/bin/javac 20000
/usr/sbin/alternatives --config javac
Check everything.
java -version
javac -version
echo $JAVA_HOME
Getting and building Oneswarm:
git clone git@github.com:CSEMike/OneSwarm.git
export ANT_OPTS="-Xmx256m"
Following steps may not be necessary if they get fixed:
- comment out
XstartOnFirst
in the get section of build.xml
-
mkdir gwt-dist
cd OneSwarm ant