4e4244da55334a27d1350abb8c8316a8f9ace951
3 # SPDX-FileCopyrightText: 2023 EfficiOS, Inc
5 # SPDX-License-Identifier: MIT
8 # The -cp path should be changed to the lttng ust agent jar file on your system
9 # or locally to the project. Same goes for the Java library path in order to
10 # find the JNI Log4j library.
14 JARFILE_COMMON
="lttng-ust-agent-common.jar"
15 JARFILE_LOG4J2
="lttng-ust-agent-log4j2.jar"
18 # If system classpath is empty, try to guess log4j location
19 if [ "x$CLASSPATH" = "x" ]; then
20 CLASSPATH
="/usr/local/share/java/log4j.jar:/usr/share/java/log4j.jar"
25 if [ -f "$DIR/.intree" ]; then
26 CLASSPATH
="$CLASSPATH:../../../src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/$JARFILE_COMMON"
27 CLASSPATH
="$CLASSPATH:../../../src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j2/$JARFILE_LOG4J2"
28 LIBPATH
="../../../src/lib/lttng-ust-java-agent/jni/log4j/.libs"
30 CLASSPATH
="$CLASSPATH:/usr/local/share/java/$JARFILE_COMMON:/usr/share/java/$JARFILE_COMMON"
31 CLASSPATH
="$CLASSPATH:/usr/local/share/java/$JARFILE_LOG4J2:/usr/share/java/$JARFILE_LOG4J2"
32 # Use system defined java.library.path
33 #LIBPATH="/usr/local/lib:/usr/lib"
36 if [ "x$LIBPATH" != "x" ]; then
37 JAVA_OPTIONS
="$JAVA_OPTIONS -Djava.library.path=$LIBPATH"
40 java
-classpath "$CLASSPATH:." $JAVA_OPTIONS HelloLog4j2Prog
This page took 0.032577 seconds and 5 git commands to generate.