Functioning java library on OSX