Here you can find the source of printStackTrace()
public static void printStackTrace()
//package com.java2s; //License from project: Open Source License public class Main { public static void printStackTrace() { (new Throwable()).printStackTrace(); }/*from www .j a v a 2 s . c o m*/ }