I have to use eclipse (with ProDT) for running swi-prolog. I installed ProDT via help->install new software, opened the prolog perspective, made a new prolog project and a new file called HelloProlog.pl with the lines I was given:
% helloprolog.pl
hello :- write('Hello Prolog World!').
Then whenever I tried to run the file (by pressing the green play button) I got the message Unable to launch; The selection cannot be launched, and there are no recent launches.
I did check Windows->Preferences->Prolog->Interpreters and added the swipl.exe of the swi-prolog directory, but nothing changed.
I suspect the problem is that there are no Run configurations for Prolog (Prolog is not in that list), but I have now idea how to set those up.
Can anyone tell me what I'm doing wrong?