private void StartMySQLListener(String MODE) {
        int port = -1;
        MySQLListener MySQLList;

        try {
            // get the command-line parameters
            port = Integer.parseInt(MySQLListenerProxyPort.getText());
        } catch (NumberFormatException e) {
            port = -1;
        }
        if (port < 0 | port > 63335) {
            port = 18000;
        }
        if (usingMySQLListener == false) {
            try {
                MySQLListenerResult = new java.util.Vector();
                // create and start the jProxy thread, using a 20 second timeout
                // value to keep the threads from piling up too much
                System.err.println("  **  Starting jProxy on port " + port + ". Press CTRL-C to end.  **\n");
                MySQLListenerResult.addElement(MySQLList = new MySQLListener(port, DBprops, MODE));
                MySQLList.start();
                usingMySQLListener = true;
            } catch (Exception e) {
                usingMySQLListener = false;
                System.err.println(e.getMessage());
                System.exit(1);
            }
        }
    }