Emulator_connection_terminal(int port, int verbosity) { this.port = port; this.verbosity = verbosity; jc_terminal = new RemoteJCTerminal(); jc_terminal.init(String.format("localhost:%d", port)); if (verbosity > 0) System.out.println("JC terminal " + port + " constructur"); // try { // jc_terminal.open(); // System.out.println("opened"); // try{Thread.sleep(5000);} catch(InterruptedException e) {} // System.out.println("continue"); // byte[] atrbytes = jc_terminal.waitForCard(0); // } // catch(JCException e) { // System.out.format("caught JCE %s code %d (%s)\n", // e.getMessage(), // e.errorCode, // e.toString()); // e.printStackTrace(); // } }