Skip to content

Installation guide

Andrey edited this page Apr 9, 2020 · 3 revisions

My j2root library is installed and available on farms, just execute source /work/clas12/kenjo/j2root/j2root.csh on farm, and this library should be ready for use.

If you want to install on your personal computer, follow these steps:

  1. You need ROOT installed on your computer, and root-config location should be in your PATH environment variable. You can check it by running root-config in your command line
  2. The JDK introduces a bridge between the bytecode running in our JVM and the native code. So you need JNI header files, and they are usually accessible in the system default header locations, so you don't need to do anything. Otherwise you should specify JAVA_HOME environment variable. You should be able to find jni.h and jni_md.h in your $JAVA_HOME/include location.
  3. Clone the repo, run scons, run maven:
git clone git@github.com:drewkenjo/j2root.git
cd j2root
scons
mvn package
  1. Set environment variables:
  • source setup.sh in bash
  • source setup.csh in csh
  1. Test installation by running run-groovy root.groovy, it should create test.root file in your current directory
Clone this wiki locally