endif
JFLAGS = -g
-JC = javac -cp "$(CLASSPATH):."
+JC = javac -classpath "$(CLASSPATH):."
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $*.java
LIBPATH="/usr/local/lib:/usr/lib"
fi
-java -cp "$CLASSPATH:." -Djava.library.path="$LIBPATH" Hello
+java -classpath "$CLASSPATH:." -Djava.library.path="$LIBPATH" Hello
cd -
CLASSPATH=$(JAVA_CLASSPATH_OVERRIDE)/$(JARFILE):$(LOG4J)
endif
-JC = javac -cp "$(CLASSPATH):."
+JC = javac -classpath "$(CLASSPATH):."
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $*.java
LIBPATH="/usr/local/lib:/usr/lib"
fi
-java -cp "$CLASSPATH:." Hello
+java -classpath "$CLASSPATH:." Hello
cd -
$(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)
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