import httpserver.RequestSender;
import httpserver.WebServer;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class Controller {
    public TextField command;
    @FXML
    public TextArea results;

    public void runCommand(ActionEvent actionEvent) {
        WebServer ws = new WebServer();
        ws.setResults(results);
        String commandString = command.getText();
        RequestSender.sendRequest("http://localhost:8000/job", "13", commandString, "http://localhost:8008/jobFinished");
    }

}

@@ -217,16 +217,60 @@
 oller %7B%0A
+    private WebServer ws = new WebServer();%0A
     publ
@@ -389,48 +389,8 @@
 ) %7B%0A
-        WebServer ws = new WebServer();%0A
     

Correct multiple instantiation of server problem.