Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Setup your environment

No Format
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

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

Running the examples

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

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