How to load the jna jar file before cffi?

Mirko Vukovic mirko.vukovic at
Wed May 10 20:24:46 UTC 2017


In order for CFFI to load, I need to load jna-4.2.2.jar.

Right now, I have to do something like this:
(let ((jar-pathname
  (java:add-to-classpath (namestring jar-pathname)))

To automate loading of ASDFs that require CFFI I tried to automate the
process by adding a before method to 'load-op:

(eval-when (:compile-toplevel :execute :load-toplevel)
  (defmethod operate :before ((operation (eql 'asdf/lisp-action:load-op))
(component (eql :cffi)))
    (let ((jar-pathname
      (java:add-to-classpath (namestring jar-pathname)))))

That did not work.  I did read the ASDF manual, but could not figure out
how to do it.

I suspect someone has figured out the right way.  What is it?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the armedbear-devel mailing list