[armedbear-devel] newbie question

Pascal J. Bourguignon pjb at informatimago.com
Wed Feb 16 10:30:41 UTC 2011

Lukas Georgieff
<lukas.georgieff at hotmail.com> writes:

> Hi,
> I am new to ABCL and have a question to it's capabilities:
> My goal is to load an exsting part of a system coded in lisp into Java and to use the lisp code as basic library for a java application.
> Currently my approach is to load the lisp code with:
> Interpreter interpreter = Interpreter.createInstance();
> interpreter.eval("(load \"my-lisp-code.lisp\")");
> ...
> So the lisp code must be present in the project every time it is
> running.  Is there any chance to translate the lisp code to a Java
> source file by using ABCL? So it would not be necessary to provide the
> lisp code in the java application after it is translated once.

Once compiled, the lisp code is provided as a .class file.  Wouldn't
that be enough?  Why would you need the java source?

Try: (compile-file "my-lisp-code.lisp")

__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.

More information about the armedbear-devel mailing list