From e42e58cd9154f3fd56faec86e9336102638810d3 Mon Sep 17 00:00:00 2001 From: iGio90 Date: Tue, 22 Dec 2020 21:28:17 -0800 Subject: [PATCH] Remove deprecated javah and build with javac (#1360) Hi, I was having trouble building java bindings on latest ubuntu. I installed jdk8 which has javah but somehow was failing during install (missing compiled classes even if they were in place in unicorn/). I guess mixing with jdk11 pop the issue. Using javac from most recent jdk works very fine. --- bindings/java/Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/Makefile.build b/bindings/java/Makefile.build index 2aaf5113..da314a07 100644 --- a/bindings/java/Makefile.build +++ b/bindings/java/Makefile.build @@ -46,7 +46,7 @@ all: lib jar samples $(CC) -c $(CFLAGS) $(INCS) $< -o $@ unicorn_Unicorn.h: unicorn/Unicorn.java - javah unicorn.Unicorn + javac -h unicorn/ unicorn/*.java unicorn_Unicorn.o: unicorn_Unicorn.c unicorn_Unicorn.h $(CC) -c $(CFLAGS) $(INCS) $< -o $@