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

Frederico Munoz fsmunoz at sdf.org
Tue Apr 25 11:18:34 UTC 2017


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!

-- 
fsmunoz at sdf.org
SDF Public Access UNIX System - http://sdf.org




More information about the armedbear-devel mailing list