From: vrivero
Subject: calling lisp from java
Date: 
Message-ID: <1112047975.282497.46270@g14g2000cwa.googlegroups.com>
Hi everybody, i've been reading your posts because i'm looking for a
solution to call some routines written in lisp (i'm using CLISP) from
java programs.

I've seen JACOL, but I don't know if it's possible to run it under
windows(has anybody tried it?). I`ve read that there are some other
choices like CLORB (i've read that it`s not completely finished) or
Kawa (i really dont't know what is exactly).

Thank you.

From: Marco Antoniotti
Subject: Re: calling lisp from java
Date: 
Message-ID: <aH%1e.60$fp1.90145@typhoon.nyu.edu>
Many Common Lisp implementations allow you to "call in" from C.  Calling 
from Java is thus just a few JNI calls away.

In alternative you can have a look at JFLI and friends.

Cheers
--
Marco






vrivero wrote:
> Hi everybody, i've been reading your posts because i'm looking for a
> solution to call some routines written in lisp (i'm using CLISP) from
> java programs.
> 
> I've seen JACOL, but I don't know if it's possible to run it under
> windows(has anybody tried it?). I`ve read that there are some other
> choices like CLORB (i've read that it`s not completely finished) or
> Kawa (i really dont't know what is exactly).
> 
> Thank you.
> 
From: R. Mattes
Subject: Re: calling lisp from java
Date: 
Message-ID: <pan.2005.03.28.23.00.11.769842@mh-freiburg.de>
On Mon, 28 Mar 2005 17:37:58 -0500, Marco Antoniotti wrote:

> Many Common Lisp implementations allow you to "call in" from C.  Calling 
> from Java is thus just a few JNI calls away.
>

Actually, how many do? AFAIK even "call back" is a rather weak spot of a
lot of CL implementations - esp. the free/open source ones (esp, on
non x86/and or non-Linux boxes).


 In alternative you can have a look at JFLI and friends.
> 
> Cheers
> --
> Marco
> 
> 
> 
> 
> 
> 
> vrivero wrote:
>> Hi everybody, i've been reading your posts because i'm looking for a
>> solution to call some routines written in lisp (i'm using CLISP) from
>> java programs.

How about a setup where your Java code communicates with a Lisp by means
of xml-rpc (or similar soapy stuff :-)
I've used this approach to provide services to python programs.
You could also have a look at ECL - that implementation allows you to 
create dlls/shared object libraries that seem to be much easier to
integrate into a JNI environment.

>> I've seen JACOL, but I don't know if it's possible to run it under
>> windows(has anybody tried it?). I`ve read that there are some other
>> choices like CLORB (i've read that it`s not completely finished) or
>> Kawa (i really dont't know what is exactly).

Kawa is scheme, so it might be a bit unusual if you only wrote CL so far
...

hth Ralf Mattes
>> Thank you.
>>
From: Alex Mizrahi
Subject: Re: calling lisp from java
Date: 
Message-ID: <424999a9$0$239$14726298@news.sunsite.dk>
(message (Hello 'vrivero)
(you :wrote  :on '(28 Mar 2005 14:12:55 -0800))
(

 v> Hi everybody, i've been reading your posts because i'm looking for a
 v> solution to call some routines written in lisp (i'm using CLISP) from
 v> java programs.

if you need just call some routines, you can try using ABCL -- Armed Bear
Common Lisp, it's Common Lisp implemented in Java.
it's not very stable and conformant, but it works and can be used for many
applications.

)
(With-best-regards '(Alex Mizrahi) :aka 'killer_storm)
"People who lust for the Feel of keys on their fingertips (c) Inity")
From: vrivero
Subject: Re: calling lisp from java
Date: 
Message-ID: <1112202429.318511.306950@z14g2000cwz.googlegroups.com>
i`ve found a solution, that it's good enough for me and not very
difficult.

I've executed clisp from java with Runtime.getRuntime().exec, then i've
attached a thread to this process to listen to the output of what i
told clisp to do.

Thank you for all of your suggestions, i'll consider them if i decide
to improve my program.