private void StartHTTPProxy(String MODE) {
        int port = -1;
        String fwdProxyServer = "";
        int fwdProxyPort = 0;
        jProxy jp;

        try {
            // get the command-line parameters
            port = Integer.parseInt(HTTPProxySourcePort.getText());
        } catch (NumberFormatException e) {
            port = -1;
        }
        if (port < 0 | port > 63335) {
            port = 8080;
        }
        if (usingProxy == false) {
            try {
                HTTPProxyResult = 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");
                HTTPProxyResult.addElement(jp = new jProxy(port, fwdProxyServer, fwdProxyPort, 20, DBprops, MODE));
                jp.setDebug(1, System.out);		// or set the debug level to 2 for tons of output

                jp.start();
                usingProxy = true;
            } catch (Exception e) {
                usingProxy = false;
                System.err.println(e.getMessage());
                System.exit(1);
            }
        }
    }