JUL: add Hello.java in doc/examples
[lttng-ust.git] / doc / examples / java-jul / run
CommitLineData
849202d4
DG
1#!/bin/bash
2
3#
4# The -cp path should be changed to the lttng ust JUL jar file on your system
5# or locally to the project. Same goes for the Java library path in order to
6# find the JNI JUL library.
7#
8
9DIR=`dirname $0`
10JARFILE="liblttng-ust-jul.jar"
11
12cd $DIR
13
14if [ -f "$DIR/.intree" ]; then
15 CLASSPATH="../../../liblttng-ust-jul/$JARFILE"
16 LIBPATH="../../../liblttng-ust-jul/.libs"
17else
18 CLASSPATH="/usr/local/lib/lttng/java/$JARFILE:/usr/lib/lttng/java/$JARFILE"
19 LIBPATH="/usr/local/lib:/usr/lib"
20fi
21
22java -cp "$CLASSPATH:." -Djava.library.path="$LIBPATH" Hello
23
24cd -
This page took 0.02394 seconds and 4 git commands to generate.