Function to verify java on the system
Added log messages and made the server more robust