init the server when run as jar