/* The Error Handler Class by Jim Mach */ public class ErrorHandler { public void ShowError(Exception e, String msg) { e.printStackTrace(); System.out.println("ERROR: " + msg + " " + e.getMessage()); System.runFinalization(); System.gc(); System.exit(0); } }