Hi all,
I am new to prolog. I am using BProlog. My project needs java and
prolog back and forth. So is there a way to consult prolog program in
Eclipse?
FYI, I have tried Prolog Plugin (http://eclipse.ime.usp.br/projetos/
grad/plugin-prolog/index.html). I shows some problem
Problems executing prolog interpreter.
Prolog interpreter path may be incorrect! Check the 'Prolog
Preferences'.
Exception occurred executing command line.
Cannot run program "C:\BProlog": CreateProcess error=3D5, =C2=BE=DC=BE=C3=
=B8=C2=B7=C3=83
Does anyone know how to set prolog interpret path in Eclipse?
Does this Prolog Plugin only supoort Ciao Prolog? (Thats why I cannot
use BProlog in Eclipse?)
Looking forward to hearing from you.
Thanks in advance!
-Xiaoyu
|
|
0
|
|
|
|
Reply
|
xiaoyudi84 (1)
|
11/6/2009 11:28:26 AM |
|
On Nov 6, 6:28=C2=A0am, butter <xiaoyud...@gmail.com> wrote:
> Hi all,
>
> I am new to prolog. I am using BProlog. My project needs java and
> prolog back and forth. So is there a way to consult prolog program in
> Eclipse?
>
> FYI, I have tried Prolog Plugin (http://eclipse.ime.usp.br/projetos/
> grad/plugin-prolog/index.html). I shows some problem
> Problems executing prolog interpreter.
> =C2=A0Prolog interpreter path may be incorrect! Check the 'Prolog
> Preferences'.
> =C2=A0 Exception occurred executing command line.
> =C2=A0 Cannot run program "C:\BProlog": CreateProcess error=3D5, =C2=BE=
=DC=BE=C3=B8=C2=B7=C3=83
> Does anyone know how to set prolog interpret path in Eclipse?
> Does this Prolog Plugin only supoort Ciao Prolog? (Thats why I cannot
> use BProlog in Eclipse?)
>
> Looking forward to hearing from you.
>
> Thanks in advance!
>
> -Xiaoyu
Hi, Xiaoyu:
It looks like the names of the Ciao Prolog
and BProlog executables are different, so
that setting the path, as you seem to have
done ("C:\BProlog") doesn't suffice to get
the BProlog executable launched.
I can think of a couple of "hacks" to try
if you haven't already. Go into Prolog
Preferences and change the path so that
it includes the executable name followed
by a space. This might serve to trick
Eclipse into launching the BProlog engine.
The other idea is to rename the BProlog
executable to match the name of the Ciao
Prolog executable, leaving the path as
you already had it ("C:\BProlog" is that
is where the executable program file
"lives").
[I use Amzi! Prolog in the Eclipse IDE,
which has integrated editor & debugger.
It's not currently open source though.]
regards, chip
|
|
0
|
|
|
|
Reply
|
Chip
|
11/6/2009 1:35:15 PM
|
|
On Nov 6, 5:35=C2=A0am, Chip Eastham <hardm...@gmail.com> wrote:
> On Nov 6, 6:28=C2=A0am, butter <xiaoyud...@gmail.com> wrote:
>
>
>
>
>
> > Hi all,
>
> > I am new to prolog. I am using BProlog. My project needs java and
> > prolog back and forth. So is there a way to consult prolog program in
> > Eclipse?
>
> > FYI, I have tried Prolog Plugin (http://eclipse.ime.usp.br/projetos/
> > grad/plugin-prolog/index.html). I shows some problem
> > Problems executing prolog interpreter.
> > =C2=A0Prolog interpreter path may be incorrect! Check the 'Prolog
> > Preferences'.
> > =C2=A0 Exception occurred executing command line.
> > =C2=A0 Cannot run program "C:\BProlog": CreateProcess error=3D5, =C2=BE=
=DC=BE=C3=B8=C2=B7=C3=83
> > Does anyone know how to set prolog interpret path in Eclipse?
> > Does this Prolog Plugin only supoort Ciao Prolog? (Thats why I cannot
> > use BProlog in Eclipse?)
>
> > Looking forward to hearing from you.
>
> > Thanks in advance!
>
> > -Xiaoyu
>
> Hi, Xiaoyu:
>
> It looks like the names of the Ciao Prolog
> and BProlog executables are different, so
> that setting the path, as you seem to have
> done ("C:\BProlog") doesn't suffice to get
> the BProlog executable launched.
>
> I can think of a couple of "hacks" to try
> if you haven't already. =C2=A0Go into Prolog
> Preferences and change the path so that
> it includes the executable name followed
> by a space. =C2=A0This might serve to trick
> Eclipse into launching the BProlog engine.
>
> The other idea is to rename the BProlog
> executable to match the name of the Ciao
> Prolog executable, leaving the path as
> you already had it ("C:\BProlog" is that
> is where the executable program file
> "lives").
>
> [I use Amzi! Prolog in the Eclipse IDE,
> which has integrated editor & debugger.
> It's not currently open source though.]
>
> regards, chip- Hide quoted text -
>
> - Show quoted text -
Hi Chip,
Thanks for your suggestion first!
I have changed the path to C:\BProlog\bp.bat
It shows :
B-Prolog Version 7.2#1, All rights reserved, (C) Afany Software
1994-2009.
This edition of B-Prolog is for evaluation, learning, and non-profit
research purposes only, and a license is needed for any other uses.
Please visit http://www.probp.com/license.htm for the detail.
Type 'help' for usage.
*** Error: getline(): not interactive, use stdio.
Any ideas?
Thanks,
Xiaoyu
|
|
0
|
|
|
|
Reply
|
butter
|
11/6/2009 2:52:05 PM
|
|
On Nov 6, 9:52=A0am, butter <xiaoyud...@gmail.com> wrote:
> I have changed the path to C:\BProlog\bp.bat
>
> *** Error: getline(): not interactive, use stdio.
>
This problem has been reported before by several users. In B-Prolog,
the getline program by Chris Thewalt is used to read and edit command
lines. This program assumes input from the standard stream. This
restriction makes it impossible to read commands from a file or from
another application.
In version 7.3#3 (just released), another getline is added that
enables reading from any file or application. To use this getline
instead of the default getline, you need to start the system with the
option "-l". For example, to read commands from a file, you can start
B-Prolog redirecting input to that file.
bp -l < file
This feature works with only Windows and Linux now and is not
documented yet.
I don't use the Eclipse IDE. Let us know if the new getline works with
Eclipse.
Cheers,
Neng-Fa
|
|
0
|
|
|
|
Reply
|
afa
|
11/6/2009 5:20:03 PM
|
|
|
3 Replies
696 Views
(page loaded in 0.18 seconds)
|