From: Christian Babeux Date: Fri, 28 Nov 2014 21:39:50 +0000 (-0500) Subject: Fix: Shorthand option -cp not supported in all version of Java X-Git-Tag: v2.7.0-rc1~69 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=631dc14c99a187453b9c46aca090fcf3b7ed8ec9;p=lttng-ust.git Fix: Shorthand option -cp not supported in all version of Java Signed-off-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/examples/java-jul/Makefile b/doc/examples/java-jul/Makefile index a45719d1..1431b60b 100644 --- a/doc/examples/java-jul/Makefile +++ b/doc/examples/java-jul/Makefile @@ -32,7 +32,7 @@ else endif JFLAGS = -g -JC = javac -cp "$(CLASSPATH):." +JC = javac -classpath "$(CLASSPATH):." .SUFFIXES: .java .class .java.class: $(JC) $(JFLAGS) $*.java diff --git a/doc/examples/java-jul/run b/doc/examples/java-jul/run index b8342f70..1beac853 100755 --- a/doc/examples/java-jul/run +++ b/doc/examples/java-jul/run @@ -19,6 +19,6 @@ else LIBPATH="/usr/local/lib:/usr/lib" fi -java -cp "$CLASSPATH:." -Djava.library.path="$LIBPATH" Hello +java -classpath "$CLASSPATH:." -Djava.library.path="$LIBPATH" Hello cd - diff --git a/doc/examples/java-log4j/Makefile b/doc/examples/java-log4j/Makefile index e174e318..4b599642 100644 --- a/doc/examples/java-log4j/Makefile +++ b/doc/examples/java-log4j/Makefile @@ -34,7 +34,7 @@ else CLASSPATH=$(JAVA_CLASSPATH_OVERRIDE)/$(JARFILE):$(LOG4J) endif -JC = javac -cp "$(CLASSPATH):." +JC = javac -classpath "$(CLASSPATH):." .SUFFIXES: .java .class .java.class: $(JC) $(JFLAGS) $*.java diff --git a/doc/examples/java-log4j/run b/doc/examples/java-log4j/run index 3a84f594..128725f1 100755 --- a/doc/examples/java-log4j/run +++ b/doc/examples/java-log4j/run @@ -20,6 +20,6 @@ else LIBPATH="/usr/local/lib:/usr/lib" fi -java -cp "$CLASSPATH:." Hello +java -classpath "$CLASSPATH:." Hello cd - diff --git a/liblttng-ust-java-agent/java/Makefile.am b/liblttng-ust-java-agent/java/Makefile.am index f9344bb0..bcf6abec 100644 --- a/liblttng-ust-java-agent/java/Makefile.am +++ b/liblttng-ust-java-agent/java/Makefile.am @@ -53,11 +53,11 @@ $(jarfile_old): classnoinst.stamp $(pkgpath)/jul/*.class $(pkgpath_old)/*.class jul-jni-header.stamp: $(dist_noinst_JAVA) - $(JAVAH) -cp $(CLASSPATH):$(srcdir) -d $(juljniout) $(JAVAHFLAGS) org.lttng.ust.agent.jul.LTTngLogHandler && \ + $(JAVAH) -classpath $(CLASSPATH):$(srcdir) -d $(juljniout) $(JAVAHFLAGS) org.lttng.ust.agent.jul.LTTngLogHandler && \ echo "JUL JNI header generated" > jul-jni-header.stamp log4j-jni-header.stamp: $(dist_noinst_JAVA) - $(JAVAH) -cp $(CLASSPATH):$(srcdir) -d $(log4jjniout) $(JAVAHFLAGS) org.lttng.ust.agent.log4j.LTTngLogAppender && \ + $(JAVAH) -classpath $(CLASSPATH):$(srcdir) -d $(log4jjniout) $(JAVAHFLAGS) org.lttng.ust.agent.log4j.LTTngLogAppender && \ echo "Log4j JNI header generated" > log4j-jni-header.stamp all-local: $(stamp) diff --git a/liblttng-ust-java/Makefile.am b/liblttng-ust-java/Makefile.am index fee9b7d2..baada571 100644 --- a/liblttng-ust-java/Makefile.am +++ b/liblttng-ust-java/Makefile.am @@ -20,7 +20,7 @@ $(jarfile): classnoinst.stamp org_lttng_ust_LTTngUst.h: jni-header.stamp jni-header.stamp: $(dist_noinst_JAVA) - $(JAVAH) -cp $(srcdir) $(JAVAHFLAGS) org.lttng.ust.LTTngUst && \ + $(JAVAH) -classpath $(srcdir) $(JAVAHFLAGS) org.lttng.ust.LTTngUst && \ echo "JNI header generated" > jni-header.stamp all-local: org_lttng_ust_LTTngUst.h