Re: How to load the jna jar file before cffi?

Mirko Vukovic <[email protected]>
Newsgroups gmane.editors.j.devel
Message-ID <CAO73BACsA9d87yhp87gOwMZsd8rY5W+LU+t1nKJ628b_kfwrzQ__22505.475258413$1495657210$gmane$org@mail.gmail.com>
On Wed, May 24, 2017 at 3:51 PM Mirko Vukovic <[email protected]>
wrote:

> On Sat, May 13, 2017 at 4:21 PM Mark Evenson <[email protected]> wrote:
>
>>
>>
>> On 5/12/17 15:36, Mirko Vukovic wrote:
>> […]
>> > I don't have jna.asd anywhere on my computer
>>
>> It is packaged as part of `abcl-contrib.jar`.
>>
>> […]
>>
>> snip ...
>
>> This indicates that for some reason your installation cannot locate
>> abcl-contrib.jar.
>>
>
> Summary: abcl-contrib is fine, but there is an issue with Maven (even
> though mvn.bat is in path). Details below:
>

After (require :abcl-asdf), I invoke (abcl-asdf:find-mvn) TWICE.
- First time, I get error about missing Maven executable
- Second time, it finds Maven executable.

After that second time, CFFI loads cleanly.

Summary of steps to load CFFI from abcl --no-init:
(require :abcl-contrib)
(require :abcl-asdf)
(abcl-asdf:find-mvn) ; issues warning about non-existant executable
(abcl-asdf:find-mvn) ; returns mvn.bat path
(load "~/quicklisp/setup.lisp")
(ql:quickload :cffi) ; works

Mirko
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.