public void run() { mcp.setDirectory(mcpath); mcp.start(); while (mcp.isRunning()) { try { Thread.sleep(50); } catch (Exception e) { } } }