Steve Ni writes: > Thanks, I study this command from here: > http://www-900.ibm.com/developerWorks/cn/linux/guitoolkit/j-nativegui/index_ > eng.shtml > > Haha, I don't know if this article is wrong! It is. Apart from anything else, if you're making a shared object on Linux (or any UNIX AFAIK) you must compile with -fpic. Link against the shared object with -lfoo. Andrew.