basic working java lib