Fixed issue with java configuration if not present