From 2c13039e2440af91405b79c83aac82575a85da58 Mon Sep 17 00:00:00 2001 From: Andre Rodovalho Date: Sat, 30 Apr 2022 10:54:35 +1200 Subject: [PATCH] Including path to load headers of 'default-java' version: should help on new debian-like distros --- linux/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux/Makefile b/linux/Makefile index 2529908..3ed7a69 100755 --- a/linux/Makefile +++ b/linux/Makefile @@ -11,7 +11,8 @@ JNIOBJS=HIDManager.o HIDDeviceInfo.o HIDDevice.o hid-java.o JAVA5HEADERS=-I/opt/jdk1.5.0/include/ -I/opt/jdk1.5.0/include/linux JAVA6HEADERS=-I/usr/lib/jvm/java-6-openjdk/include/ -I/usr/lib/jvm/java-6-openjdk/include/linux JAVA7HEADERS=-I/usr/lib/jvm/jdk1.7.0/include/ -I/usr/lib/jvm/jdk1.7.0/include/linux -JNIINCLUDES=-I.. -I../jni-impl $(JAVA5HEADERS) $(JAVA6HEADERS) $(JAVA7HEADERS) +JAVADEFAULTHEADERS=-I/usr/lib/jvm/default-java/include/ -I/usr/lib/jvm/default-java/include/linux +JNIINCLUDES=-I.. -I../jni-impl $(JAVA5HEADERS) $(JAVA6HEADERS) $(JAVA7HEADERS) $(JAVADEFAULTHEADERS) JNILIBS= JNISHAREDLIB=libhidapi-jni.so JNISHAREDLIBVER=1.0