Setup your environment

export PATH=/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc5/bin:${PATH}
export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc5/lib64:${LD_LIBRARY_PATH}
export JAVA_HOME=/afs/cern.ch/sw/lcg/external/Java/JDK/SUN_1.6.0_16/amd64
export PATH=${JAVA_HOME}/bin:$PATH
source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.32.04/x86_64-slc5-gcc46-opt/root/bin/thisroot.sh 

Building javaROOT

svn co https://heplnm060.pp.rl.ac.uk/repos/javaROOT/trunk javaROOT
cd javaROOT
OSTYPE=linux-gnu make all

Running the examples

cd Examples
make
cd TH1F
make
java -cp ../../jar/javaROOT.jar:../../jar/freehep-physics-2.1.jar:. Test

When running from a different location, add a symlink to the .so file in the lib/ folder to the current directory, or specify the path to the shared library in the java command line, e.g. java -Djava.library.path=/afs/cern.ch/user/j/jfstrube/work/public/javaROOT_HEAD/lib

  • No labels