| | 21 | |
| | 22 | === Using customized gdal-java with petascope === |
| | 23 | |
| | 24 | By default, gdal-java JNI folder exists at `/usr/lib/jni` (Ubuntu) and |
| | 25 | `/usr/lib/java/gdal` (Centos). If you use a customized gdal-java JNI folder (e.g: `/opt/lib/jni`), then you need to configure it manually. |
| | 26 | * For system tomcat (e.g: tomcat 8), edit: `/etc/default/tomcat8` and set JNI path as below: |
| | 27 | {{{ |
| | 28 | |
| | 29 | JAVA_OPTS="-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Djava.library.path=/opt/lib/jni" |
| | 30 | |
| | 31 | }}} |
| | 32 | * For embedded Tomcat, you can set an environment variable for JNI library path before running petascope, e.g: |
| | 33 | {{{ |
| | 34 | export LD_LIBRARY_PATH="/opt/lib/jni" |
| | 35 | java -jar rasdaman.war |
| | 36 | |
| | 37 | Or add the JNI library path directly |
| | 38 | java -jar -Djava.library.path=/opt/lib/jni rasdaman.war |
| | 39 | }}} |