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>
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"