http://kejun.iteye.com/blog/510999
package test.json;
import java.security.CodeSource;
import java.security.ProtectionDomain;
import net.sf.json.JSONObject;
public class JSONTest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
JSONObject json = new JSONObject();
json.put("", "xyz");
ProtectionDomain pd = net.sf.json.JSONObject.class.getProtectionDomain();
CodeSource cs = pd.getCodeSource();
System.out.println(cs.getLocation());
System.exit(0);
}
}