我必须使用eclipse(与ProDT)来运行swi-prolog。我通过help->install new software
安装ProDT,打开了序言角度,提出了新的序言项目和一个叫HelloProlog.pl
与他们给我行新的文件:使用eclipse Prolog
% helloprolog.pl
hello :- write('Hello Prolog World!').
然后,每当我试图运行文件(按绿色播放按钮)我得到了消息Unable to launch; The selection cannot be launched, and there are no recent launches.
我没有检查Windows->Preferences->Prolog->Interpreters
并添加了swi-prolog目录的swipl.exe
,但没有任何更改。
我怀疑问题是没有运行配置为Prolog(Prolog不在该列表中),但我现在已经想法如何设置这些。
谁能告诉我我做错了什么?