"Don't know how to REQUIRE JSS" when loading Lisp code from Java

Frederico Munoz <[email protected]>
Newsgroups gmane.editors.j.devel
Message-ID <[email protected]>
Hello,

I'm using the following code to execute a Lisp function:

 #+BEGIN_SRC java
 
public class Call {
    public static void main(String [] args) {
	Call thisObject = new Call();
	Interpreter interpreter = Interpreter.createInstance();
	interpreter.eval("(load \"lispfunctions.lisp\")");
	org.armedbear.lisp.Package defaultPackage =
	    Packages.findPackage("CL-USER");
	Symbol voidsym =
	    defaultPackage.findAccessibleSymbol("SAY-HELLO");
	Function voidFunction = (Function) voidsym.getSymbolFunction();
	LispObject result = voidFunction.execute(new JavaObject(thisObject));	
    }
}

#+END_SRC

The Lisp side:

#+BEGIN_SRC lisp
;;; lispfunctions.lisp
(java:add-to-classpath "/opt/abcl-bin-1.4.0/abcl-contrib.jar")

(require :jss)

(defun say-hello ()
   "Hi!")
      
#+END_SRC

It works without the (requirese :jss); whenever I try to use it I get:

#<THREAD "main" {C7BBB6C0}>: Debugger invoked on condition of type SIMPLE-ERROR
  Don't know how to REQUIRE JSS.


Any pointers? Thanks!

-- 
[email protected]
SDF Public Access UNIX System - http://sdf.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.