To jest stara wersja strony!


import com.declarativa.interprolog.* ;
import com.declarativa.interprolog.util.* ;
import com.declarativa.interprolog.swi.* ;
 
public class HelloWorld {
 
	public static void main(String [] args) {
		PrologEngine engine = new SWISubprocessEngine() ;
		boolean test = false ;
		test = engine.deterministicGoal("listing.") ;
		System.out.println("Rezultat: " + test) ;
	}
}

Pojawia się podczas uruchomienia następujący błąd:

Exception in thread "main" com.declarativa.interprolog.util.IPException: Could not launch Prolog executable:java.io.IOException: CreateProcess: null\plcon error=2
	at com.declarativa.interprolog.SubprocessEngine.<init>(SubprocessEngine.java:171)
	at com.declarativa.interprolog.SubprocessEngine.<init>(SubprocessEngine.java:176)
	at com.declarativa.interprolog.SubprocessEngine.<init>(SubprocessEngine.java:184)
	at com.declarativa.interprolog.SubprocessEngine.<init>(SubprocessEngine.java:188)
	at com.declarativa.interprolog.SWISubprocessEngine.<init>(SWISubprocessEngine.java:29)
	at HelloWorld.main(HelloWorld.java:8)

Strony przydatne przy pojawieniu się tego typu problemów: http://www.nabble.com/Re:-interprolog-%2B-windows-(solved)-(fwd)-td15907118.html

pl/miw/miw08_prolog_java/interprolog.1208035055.txt.gz · ostatnio zmienione: 2019/06/27 15:59 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0