3 # SPDX-License-Identifier: MIT
6 # The -cp path should be changed to the lttng ust agent jar file on your system
7 # or locally to the project. Same goes for the Java library path in order to
8 # find the JNI Log4j library.
12 JARFILE_COMMON
="lttng-ust-agent-common.jar"
13 JARFILE_LOG4J2
="lttng-ust-agent-log4j2.jar"
16 # If system classpath is empty, try to guess log4j location
17 if [ "x$CLASSPATH" = "x" ]; then
18 CLASSPATH
="/usr/local/share/java/log4j.jar:/usr/share/java/log4j.jar"
23 if [ -f "$DIR/.intree" ]; then
24 CLASSPATH
="$CLASSPATH:../../../lib/lttng-ust-java-agent/java/lttng-ust-agent-common/$JARFILE_COMMON"
25 CLASSPATH
="$CLASSPATH:../../../lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j2/$JARFILE_LOG4J2"
26 LIBPATH
="../../../lib/lttng-ust-java-agent/jni/log4j/.libs"
28 CLASSPATH
="$CLASSPATH:/usr/local/share/java/$JARFILE_COMMON:/usr/share/java/$JARFILE_COMMON"
29 CLASSPATH
="$CLASSPATH:/usr/local/share/java/$JARFILE_LOG4J2:/usr/share/java/$JARFILE_LOG4J2"
30 # Use system defined java.library.path
31 #LIBPATH="/usr/local/lib:/usr/lib"
34 if [ "x$LIBPATH" != "x" ]; then
35 JAVA_OPTIONS
="$JAVA_OPTIONS -Djava.library.path=$LIBPATH"
38 java
-classpath "$CLASSPATH:." $JAVA_OPTIONS HelloLog4j2Prog
This page took 0.029609 seconds and 4 git commands to generate.