I recommend you to do it step by step (in OO way).
Create a class with methods which starts and stops the server and
test it as plain Java Application with main().
Once you got that work, you just have to let the button use this class and invoke the method accordingly.