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.
This commit is contained in:
iGio90 2020-12-22 21:28:17 -08:00 committed by GitHub
parent 4b34042e02
commit e42e58cd91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ all: lib jar samples
$(CC) -c $(CFLAGS) $(INCS) $< -o $@ $(CC) -c $(CFLAGS) $(INCS) $< -o $@
unicorn_Unicorn.h: unicorn/Unicorn.java unicorn_Unicorn.h: unicorn/Unicorn.java
javah unicorn.Unicorn javac -h unicorn/ unicorn/*.java
unicorn_Unicorn.o: unicorn_Unicorn.c unicorn_Unicorn.h unicorn_Unicorn.o: unicorn_Unicorn.c unicorn_Unicorn.h
$(CC) -c $(CFLAGS) $(INCS) $< -o $@ $(CC) -c $(CFLAGS) $(INCS) $< -o $@