From: Simon Marchi Date: Fri, 7 Jan 2022 16:31:58 +0000 (-0500) Subject: Fix: doc/examples/java-jul: fix paths to directories X-Git-Tag: v2.13.2~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8010e81c43df3e46d8650ccb110c63db6fd6d3b5;p=lttng-ust.git Fix: doc/examples/java-jul: fix paths to directories I tried to run this example, but got: $ ./run Error: Unable to initialize main class Hello Caused by: java.lang.NoClassDefFoundError: org/lttng/ust/agent/jul/LttngLogHandler The paths in `run` are wrong, they are missing a `src` component. Fix that. Change-Id: I63f4532c5ec1d989f66b7061a154986692e2edf9 Signed-off-by: Simon Marchi Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/examples/java-jul/run b/doc/examples/java-jul/run index 911b04ca..feaa2362 100755 --- a/doc/examples/java-jul/run +++ b/doc/examples/java-jul/run @@ -15,9 +15,9 @@ JAVA_OPTIONS="" cd $DIR if [ -f "$DIR/.intree" ]; then - CLASSPATH="../../../lib/lttng-ust-java-agent/java/lttng-ust-agent-common/$JARFILE_COMMON" - CLASSPATH="$CLASSPATH:../../../lib/lttng-ust-java-agent/java/lttng-ust-agent-jul/$JARFILE_JUL" - LIBPATH="../../../lib/lttng-ust-java-agent/jni/jul/.libs" + CLASSPATH="../../../src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/$JARFILE_COMMON" + CLASSPATH="$CLASSPATH:../../../src/lib/lttng-ust-java-agent/java/lttng-ust-agent-jul/$JARFILE_JUL" + LIBPATH="../../../src/lib/lttng-ust-java-agent/jni/jul/.libs" else CLASSPATH="/usr/local/share/java/$JARFILE_COMMON:/usr/share/java/$JARFILE_COMMON" CLASSPATH="$CLASSPATH:/usr/local/share/java/$JARFILE_JUL:/usr/share/java/$JARFILE_JUL"