Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Consult Question (source_sink Error)

Status
Not open for further replies.

AGMX

Programmer
Mar 31, 2011
1
US
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top