3 messages in net.java.dev.jna.usersRe: [jna-users] ClassCastexception Pr...
FromSent OnAttachments
andrea antonelloJun 13, 2008 3:08 am 
Albert StrasheimJun 13, 2008 3:29 am 
andrea antonelloJun 13, 2008 4:08 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] ClassCastexception Proxy->LibraryActions...
From:Albert Strasheim (full@gmail.com)
Date:Jun 13, 2008 3:29:06 am
List:net.java.dev.jna.users

Hello,

On Fri, Jun 13, 2008 at 12:09 PM, andrea antonello <andr@gmail.com> wrote:

Following the examples, when accessing the library loading part:

KrigingLibrary INSTANCE = (KrigingLibrary) Native.loadLibrary("kriging", KrigingLibrary.class);

I get the following:

Caused by: java.lang.ClassCastException: $Proxy0 cannot be cast to com.sun.jna.Library

I would guess that your KrigingLibrary interface is not extending the com.sun.jna.Library interface.

Cheers,

Albert