Now jar works. Implemented the changing role server/coordinator
functionality :)