Here you can find the source of getRunClassAllPath(Object obj)
public static String getRunClassAllPath(Object obj)
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URL; public class Main { public static String getRunClassAllPath(Object obj) { Object currClass = obj;// w ww . j a v a 2s .c om String name = currClass.getClass().getSimpleName(); name += ".class"; URL clazzUrl = currClass.getClass().getResource(name); String clazzStr = clazzUrl.getPath(); try { clazzStr = java.net.URLDecoder.decode(clazzStr, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return clazzStr; } }