> Thanks Timothy Wall.
> I'd tried to remove old class file but it still not work. :(
>
> (Thanks dblock too.)
> So I made a issue at : https://github.com/twall/jna/issues/5
>
> -
>
> Actually I found out something strange.
> When I first use $java helloworld, it works! And after I cd to another
> directory and change back, it have error :
You mean you cd in the shell from which you're launching your java program?
Both of these errors look like your native library path needs fixing. Does your system have a version of libjnidispatch.so in LD_LIBRARY_PATH (or libjnidispatch.dll in PATH) (first error)?
Make sure the path to the library that contains your 'cvoidcall' function is either in LD_LIBRARY_PATH/PATH or jna.library.path (second error).