问题
I followed the steps described in the README in scip/interfaces/jni and when I get to step 6: make, it compiles all right untill I get this error:
In file included from src/JniScipLibraryLoader.c:25:0: src/JniScipLibraryLoader.h:2:17: fatal error: jni.h: Aucun fichier ou dossier de ce type compilation terminated. Makefile:516 : la recette pour la cible « obj/O.linux.x86_64.gnu.opt/JniScipLibraryLoader.o » a échouée make: *** [obj/O.linux.x86_64.gnu.opt/JniScipLibraryLoader.o] Erreur 1
What I perhaps failed to do correctly (but I should like some advice) is creating the optional path to java (I tried creating a soft link to my JDK-folder, but it doesn't seems to do the trick).
Evidently, because of this error I fail to perform the tests in step 7.
Any help is greatly appreciated! (please bear in mind when responding that I'm not a full grown developer)
回答1:
Please use our new Java interface JSCIPOpt, which can be found here.
来源:https://stackoverflow.com/questions/41955663/interface-java-and-scip-not-generating-the-right-classes