-
Notifications
You must be signed in to change notification settings - Fork 3
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:
- You need ROOT installed on your computer, and
root-config
location should be in your PATH environment variable. You can check it by runningroot-config
in your command line - 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 findjni.h
andjni_md.h
in your$JAVA_HOME/include
location. - Clone the repo, run scons, run maven:
git clone git@github.com:drewkenjo/j2root.git
cd j2root
scons
mvn package
- Set environment variables:
-
source setup.sh
in bash -
source setup.csh
in csh
- Test installation by running
run-groovy root.groovy
, it should createtest.root
file in your current directory