Fix: build log4j example when enabled
[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`
501f6777 10JARFILE="liblttng-ust-agent.jar"
849202d4
DG
11
12cd $DIR
13
14if [ -f "$DIR/.intree" ]; then
501f6777
CB
15 CLASSPATH="../../../liblttng-ust-java-agent/java/$JARFILE"
16 LIBPATH="../../../liblttng-ust-java-agent/jni/jul/.libs"
849202d4 17else
501f6777 18 CLASSPATH="/usr/local/share/java/$JARFILE:/usr/share/java/$JARFILE"
5c0f2ea7
MJ
19 # Use system defined java.library.path
20 #LIBPATH="/usr/local/lib:/usr/lib"
849202d4
DG
21fi
22
e9f19220 23java -classpath "$CLASSPATH:." -Djava.library.path="$LIBPATH" Hello
849202d4
DG
24
25cd -
This page took 0.027603 seconds and 4 git commands to generate.