|
From: | Juan DYB |
Subject: | [Info-gnuprologjava] GNUProlog problem |
Date: | Tue, 30 Apr 2013 20:53:49 +0200 |
Hello: I'm using GNU Prolog for Java and i have a problem with a simple predicate. I have a predicate like this in prolog. iniciarTablero:- assert(tablero([[0,0,0],[0,0,0],[0,0,0]])). And i'm trying to execute it With GNUProlog with this code. Environment environment = new Environment(); environment.ensureLoaded(AtomTerm.get(filePl)); interpreter = environment.createInterpreter(); environment.runInitialization(interpreter); this.iniciarTablero(); interpreter.runOnce(AtomTerm.get("iniciarTablero()")); And i get this error. Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: The goal is not currently active at gnu.prolog.vm.Interpreter.stop(Interpreter.java:564) at gnu.prolog.vm.Interpreter.runOnce(Interpreter.java:629) …. Can you help me please ? Thanks! -- With regards, Juan |
[Prev in Thread] | Current Thread | [Next in Thread] |