Index: libusb-java-0.8+ztex20090101/Makefile
===================================================================
--- libusb-java-0.8+ztex20090101.orig/Makefile	2011-02-02 13:13:45.000000000 +0100
+++ libusb-java-0.8+ztex20090101/Makefile	2012-09-16 20:45:06.000000000 +0200
@@ -13,7 +13,10 @@
 #########################
 
 # $(JAVAPREFIX)/include should contain jni.h
-JAVAPREFIX=/usr/local/java
+#JAVAPREFIX=$(shell find /usr/lib/jvm/ -name jni.h | sed -e 's/include.*//' | head -n 1)
+#JAVAPREFIX=/usr/lib/jvm/java-6-openjdk-$(shell dpkg-architecture -qDEB_BUILD_ARCH|tr -d "\n")
+# A bit desparate, things fail to work across platforms
+JAVAPREFIX=$(shell find /usr/lib/jvm/ -name jni.h | sed -e 's/include.*//' | head -n 1)
 
 ###############################
 # this should not be modified #
