From 9a4f9fb252ba9f3da78feacd17dec46e10eed9ce Mon Sep 17 00:00:00 2001 From: Christian Babeux Date: Fri, 28 Nov 2014 16:39:50 -0500 Subject: [PATCH] Fix: Shorthand option -cp not supported in all version of Java Signed-off-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- doc/examples/java-jul/Makefile | 2 +- doc/examples/java-jul/run | 2 +- tests/java-jul/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/examples/java-jul/Makefile b/doc/examples/java-jul/Makefile index 3af44d3e..8b1f9827 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 da8365b7..3c5952b2 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/tests/java-jul/Makefile.am b/tests/java-jul/Makefile.am index ba50fbf1..0c5b464b 100644 --- a/tests/java-jul/Makefile.am +++ b/tests/java-jul/Makefile.am @@ -20,6 +20,6 @@ clean-local: rm -f *.class JULTest.class: JULTest.java - $(JCC) -cp $(JUL_jar_file) -d "$(builddir)" "$(srcdir)/JULTest.java" + $(JCC) -classpath $(JUL_jar_file) -d "$(builddir)" "$(srcdir)/JULTest.java" endif -- 2.34.1