Compiling a copy of plserver.pl in a writable directory would work. If not, try to make that directory writable to your user.

On Thu, Jul 23, 2015 at 4:06 PM, Dan Seeruttun <dan.seeruttun@gmail.com> wrote:
This is the problem. I am able to compile on the desktop but not on the folder. I am trying to compile plserver then.

2015-07-23 15:35 GMT+02:00 Jose F. Morales <jfran@clip.dia.fi.upm.es>:
Is ciaoc able to compile other modules? (for example the following hw.pl) Is your user able to write to that directory?

:- module(_,[main/1]).

main(_) :-��
write('Hello world!'), nl, nl,
write('Hit return to proceed... '),��
flush_output,
get_code(_).


On Thu, Jul 23, 2015 at 3:15 PM, Dan Seeruttun <dan.seeruttun@gmail.com> wrote:
I tried "C:\Program Files (x86)\CiaoDE\build\objs\Win32i86\ciaoengine.exe" -C -b "C:\Program Files (x86)\CiaoDE\ciao\library\javall\plserver" but it has no effect.

I am trying to compile plserver but I can't. I think the executable for ciaoc is ciaoc-1.13.bat, and I am trying to execute it.
I am getting this error:

C:\Program Files (x86)\CiaoDE\ciao\library\javall>"C:\Program Files (x86)\CiaoDE\build\bin\ciaoc-1.13.bat" plserver.pl
{ERROR: No handle found for thrown error error(system_error,streams_basic:$open/3-1)}


2015-07-23 13:19 GMT+02:00 Jose F. Morales <jfran@clip.dia.fi.upm.es>:
On Thu, Jul 23, 2015 at 1:05 PM, Dan Seeruttun <dan.seeruttun@gmail.com> wrote:
Hello,
thank you for your answer.

For me, the path of ciaoengine.exe is C:\Program Files (x86)\CiaoDE\build\objs\Win32i86\ciaoengine.exe
the path of plserver.bat is C:\Program Files (x86)\CiaoDE\ciao\library\javall\plserver.bat

But it is not working. The main problem is it is not saying anything using Eclipse, it is just blocking later in the establishment of the connection without error, it just does nothing. Thus I tested it on the console:

Executing the following command on the console:
C:\Program Files (x86)\CiaoDE\build\objs\Win32i86>ciaoengine.exe -C -b "C:\Program Files (x86)\CiaoDE\ciao\library\javall\plserver.bat"
gives:
/cygdrive/c/Program Files (x86)/CiaoDE/ciao/library/javall/plserver: boot file not found

I think there is a problem of path with cygwin...

I would try this instead:

�� cd "C:\Program Files (x86)\CiaoDE\ciao\library\javall"
�� "C:\Program Files (x86)\CiaoDE\build\objs\Win32i86\ciaoengine.exe" -C -b "C:\Program Files (x86)\CiaoDE\ciao\library\javall\plserver"

If it still does not work, probably 'plserver' is not compiled. You need to compile it with 'ciaoc plserver'. There are some details about calling Prolog from Java (which I assume is what you are trying to do) in javall/examples/java2pl/readme.txt.

I'm working with Ciao 1.13+13182, you may want to make me update the version, please tell me if you do.

If possible, we would recommend using the latest version (1.15, from http://ciao-lang.org).
��
2015-07-23 10:12 GMT+02:00 Jose F. Morales <jfran@clip.dia.fi.upm.es>:
Hi Dan,

That file needs to be modified by hand to point to your current installation directory for Ciao. It should be something like:

@REM Change the CIAOINSTALLDIR path below to the absolute path of the application
@"CIAOINSTALLDIR\bin\Win32i86\ciaoengine.exe" %* -C -b "CIAOINSTALLDIR\library\javall\plserver.bat"


where CIAOINSTALLDIR would be the drive and path where Ciao is currently installed. Please tell us if this works for you (probably some relative paths are not correct).

The next release will fix this issue (the .bat file will be created with the right paths during installation).

Bests

On Wed, Jul 22, 2015 at 1:50 PM, Dan Seeruttun <dan.seeruttun@gmail.com> wrote:
Hello,
I'm using ciao on a server on Windows 8.
I am having problems with the file CiaoDE\ciao\library\javall\plserver.bat

I would like to know if there is a version of the file plserver.bat available on windows.

plserver.bat contents:
@REM Change the path below to the absolute path of the application
@"/home/clip/Systems/ciao-1.11/bin/Win32i86/ciaoengine.exe" %* -C -b "C:\home\clip\Systems\ciao-1.11\library\javall\plserver.bat"


The path begining by home are linux made.

Best Regards,
Dan Seeruttun--Marie

_______________________________________________
Ciao-users mailing list
Ciao-users@clip.dia.fi.upm.es
http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users

--
Jose





--
Jose




--
Jose




--
Jose