Hi everyone i have problems making a consult from java
I have:
JDK 1.6.0_20
SWI-Prolog 5.10.3
NetBeans 6.9.1
OK when i try to make a consult i get this Error:
ERROR: source_sink `test.pl' does not exist
consult('test.pl') succeeded
This is how i make the consult
Query q1 = new Query("consult",new Term[] {new Atom("test.pl")});
System.out.println("consult " + (q1.hasSolution() ? "succeeded" : "failed"));
Any ideas where I'm wrong? By the way i have test.pl file in the same folder of my .java and .class files
Thanks for your time.
I have:
JDK 1.6.0_20
SWI-Prolog 5.10.3
NetBeans 6.9.1
OK when i try to make a consult i get this Error:
ERROR: source_sink `test.pl' does not exist
consult('test.pl') succeeded
This is how i make the consult
Query q1 = new Query("consult",new Term[] {new Atom("test.pl")});
System.out.println("consult " + (q1.hasSolution() ? "succeeded" : "failed"));
Any ideas where I'm wrong? By the way i have test.pl file in the same folder of my .java and .class files
Thanks for your time.