我已经为 netbeans 下载了这个Prolog 插件,并成功添加到了 netbeans 插件中。
在 prolog 选项中,我将编译器名称:C:\Program Files\swipl\bin\swipl.exe
和编译器参数设置为默认值:-c
然后我制作了一个 prolog 项目和 prolog 文件并对其进行了测试,我在Output-Prolog中得到了这个
Output of running C:\Program Files\swipl\bin\swipl.exe -c C:\Users\Tareq\Documents\NetBeansProjects\Prolog_project1\src\sieve.pro is:
% C:\Users\Tareq\Documents\NetBeansProjects\Prolog_project1\src\sieve.pro compiled 0.00 sec, 9 clauses
% autoloading prolog_codewalk:must_be/2 from c:/program files/swipl/library/error
% autoloading oset:reverse/2 from c:/program files/swipl/library/lists
% autoloading prolog_codewalk:portray_clause/1 from c:/program files/swipl/library/listing
% autoloading prolog_codewalk:clause_info/4 from c:/program files/swipl/library/prolog_clause
% autoloading prolog_codewalk:initialization_layout/4 from c:/program files/swipl/library/prolog_clause
% autoloading qsave:current_foreign_library/2 from c:/program files/swipl/library/shlib
% autoloading prolog_debug:backtrace/1 from c:/program files/swipl/library/prolog_stack
% autoloading error:assertion/1 from c:/program files/swipl/library/debug
% autoloading record:member/2 from c:/program files/swipl/library/lists
% autoloading prolog_codewalk:clause_name/2 from c:/program files/swipl/library/prolog_clause
% Autoloader: iteration 1 resolved 10 predicates and loaded 10 files in 0.047 seconds. Restarting ...
% autoloading prolog_source:directory_file_path/3 from c:/program files/swipl/library/filesex
% autoloading files_ex:use_foreign_library/2 from c:/program files/swipl/library/shlib
% autoloading files_ex:maplist/2 from c:/program files/swipl/library/apply
% autoloading files_ex:permission_error/3 from c:/program files/swipl/library/error
% Autoloader: iteration 2 resolved 1 predicates and loaded 4 files in 0.031 seconds. Restarting ...
% Autoloader: loaded 11 files in 3 iterations in 0.125 seconds
我尝试从Tools > Ant Libraries > New Library > 将其命名为 Prolog
然后在类路径选项卡Add JAR/Folder...中添加库,然后我添加了库:
C:\Program Files\swipl\lib.JAR
我不确定我所做的是否足够,但我找不到任何教程,你能帮我吗?