I would suggest working through simple a example in just java, just so
you can figure out how to get your dlls loaded and then calling them.
Once you work out the configuration/setup kinks I would add clojure on
top of that.

I would also suggest you use jna instead of straight up jni.  If it
fits your use-case it ought to take a lot of the hassle out.

Good luck.

On Jan 3, 5:54 pm, ax2groin <ax2gr...@gmail.com> wrote:
> Of course not. I mentioned I'm new at this, right?
>
> It seems I was doing that part right before. I'm getting
> InvocationTargetException and NoClassDefFoundError, so I tried to work
> my way from the start to see if I was missing something (which I
> thought was a valid assumption, if exceptions were being swallowed).
> My first instinct was that it wasn't loading the libraries correctly.
>
> Or course, I'm still stuck. It clearly sees the classes, because my
> import statements aren't throwing ClassNotFoundExceptions. The
> exceptions I'm getting are bubbling up out of the JNI, apparently, but
> I don't have any idea why. At this point I have ugly looking Clojure
> code that looks as Java-like as possible, so that I'm doing the exact
> same thing in the exact same order as I do in a Java example, but I
> get exceptions when I do it in Clojure.
>
> So, when I get to
>     (def my-client (Client.))
> it throws. BTW, Java equivalent ... Client myClient = new Client();
>
> It feels like something is fundamentally different in a way I cannot
> conceive, like Java automatically handles something behind the scenes
> and I don't realize it.
>
> Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to