Fix: doc/examples/java-jul: fix paths to directories
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 7 Jan 2022 16:31:58 +0000 (11:31 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Jan 2022 15:35:42 +0000 (10:35 -0500)
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 <simon.marchi@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/java-jul/run

index 911b04cab4e86c6f01f0ef59cfa22b618552b93d..feaa23624791dbf789574fea534adf7872458889 100755 (executable)
@@ -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"
This page took 0.025468 seconds and 4 git commands to generate.