Just on the off chance someone has this same issue under linux I would like to point out that your library needs to be lib[whatever].so and when you do the system.loadlibrary() you put in [whatever]...