8191736: replace javah w/ javac in jdk tests

Reviewed-by: serb, jjg
This commit is contained in:
Alexandre Iline 2017-11-22 02:07:08 -08:00
parent 3ab44edd50
commit 30b907936b
4 changed files with 3 additions and 10 deletions

View File

@ -158,12 +158,10 @@ cp ${TESTSRC}${FS}${MAKEFILE} .
JAVA=${TESTJAVA}${FS}bin${FS}java
JAVAC=${TESTJAVA}${FS}bin${FS}javac
JAVAH=${TESTJAVA}${FS}bin${FS}javah
export CC SYST ARCH LD_LIBRARY_PATH
${JAVAC} -d . ${TESTSRC}${FS}MyCanvas.java
${JAVAH} -jni -classpath . -d . MyCanvas
${JAVAC} -d . -h . ${TESTSRC}${FS}MyCanvas.java
${MAKE} -f ${MAKEFILE}
${JAVA} ${TESTVMOPTS} -classpath . MyCanvas

View File

@ -26,7 +26,6 @@ CLASSES = MyCanvas.class
JAVA = $(TESTJAVA)/bin/java -classpath .
JAVAC = $(TESTJAVA)/bin/javac
JAVAH = $(TESTJAVA)/bin/javah
DEL = rm -rf
LINK = $(CC)

View File

@ -27,7 +27,6 @@ CLASSES = MyCanvas.class
ENV = /usr/bin/env
JAVA = $(TESTJAVA)/bin/java -classpath .
JAVAC = $(TESTJAVA)/bin/javac
JAVAH = $(TESTJAVA)/bin/javah
LINK = ld
J_INC = $(TESTJAVA)/include

View File

@ -68,11 +68,8 @@ $(LIBDIR)/Launcher.o : Launcher.c \
$(CC) -c $(CFLAGS) -o $(LIBDIR)/Launcher.o \
-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(PLATFORM) Launcher.c
Launcher.h : Launcher.class
$(JAVA_HOME)/bin/javah -force Launcher
Launcher.class : Launcher.java
$(JAVA_HOME)/bin/javac Launcher.java
Launcher.class Launcher.h : Launcher.java
$(JAVA_HOME)/bin/javac -h . Launcher.java
java_home:
ifndef JAVA_HOME