added java installation for beagle lib
removed bug