Utiliser JPL avec Eclipse
Bonjour,
j'essaye d'utiliser JPL avec eclipse, ce qui me permettrait de me servir d'un programme PROLOG. Or, ca fait des jours que je bloque complètement, et je craque sévère.
Pour ceux qui ne connaissent pas : http://www.swi-prolog.org/packages/j...api/index.html
J'ai juste créé un projet java de test tout con dans Eclipse, mais dès que je fait référence à JPL, j'ai une erreur. J'ai pourtant bien ajouté le jpl.jar au Build Path, mais j'ai cette erreur :
Code:
1 2 3 4 5 6 7 8 9 10
| Exception in thread "main" java.lang.UnsatisfiedLinkError: no jpl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at jpl.JPL.loadNativeLibrary(JPL.java:100)
at jpl.fli.Prolog.<clinit>(Prolog.java:85)
at jpl.Query.open(Query.java:286)
at jpl.Util.textToTerm(Util.java:162)
at jpl.Query.<init>(Query.java:198)
at Family.main(Family.java:9) |
Ensuite j'ai mis les dll du dossier jpl\lib dans un des dossiers du PATH, et là, nouvelle erreur :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| Exception in thread "main" java.lang.UnsatisfiedLinkError: Z:\Projet CSII 2 Local\eclipse\jpl.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at jpl.JPL.loadNativeLibrary(JPL.java:100)
at jpl.fli.Prolog.<clinit>(Prolog.java:85)
at jpl.Query.open(Query.java:286)
at jpl.Util.textToTerm(Util.java:162)
at jpl.Query.<init>(Query.java:198)
at Family.main(Family.java:9) |
Alors déjà, première chose, si quelqu'un sait comment rajouter un dossier dans le java.library.path, je suis preneur.
Et ensuite... je fais quoi pour que ca marche? lol j'en peux plus...
SVP, aidez moi!!