4 # The -cp path should be changed to the lttng ust agent jar file on your system
5 # or locally to the project. Same goes for the Java library path in order to
6 # find the JNI Log4j library.
10 JARFILE_COMMON
="lttng-ust-agent-common.jar"
11 JARFILE_LOG4J
="lttng-ust-agent-log4j.jar"
14 # If system classpath is empty, try to guess log4j location
15 if [ "x$CLASSPATH" = "x" ]; then
16 CLASSPATH
="/usr/local/share/java/log4j.jar:/usr/share/java/log4j.jar"
21 if [ -f "$DIR/.intree" ]; then
22 CLASSPATH
="$CLASSPATH:../../../liblttng-ust-java-agent/java/lttng-ust-agent-common/$JARFILE_COMMON"
23 CLASSPATH
="$CLASSPATH:../../../liblttng-ust-java-agent/java/lttng-ust-agent-log4j/$JARFILE_LOG4J"
24 LIBPATH
="../../../liblttng-ust-java-agent/jni/log4j/.libs"
26 CLASSPATH
="$CLASSPATH:/usr/local/share/java/$JARFILE_COMMON:/usr/share/java/$JARFILE_COMMON"
27 CLASSPATH
="$CLASSPATH:/usr/local/share/java/$JARFILE_LOG4J:/usr/share/java/$JARFILE_LOG4J"
28 # Use system defined java.library.path
29 #LIBPATH="/usr/local/lib:/usr/lib"
32 if [ "x$LIBPATH" != "x" ]; then
33 JAVA_OPTIONS
="$JAVA_OPTIONS -Djava.library.path=$LIBPATH"
36 java
-classpath "$CLASSPATH:." $JAVA_OPTIONS Hello
This page took 0.034288 seconds and 5 git commands to generate.