CodeSource: getLocation() : CodeSource « java.security « Java by API






CodeSource: getLocation()

  


public class Main {
  public static void main(String args[]) {
    Main m = new Main();
    System.out.println(m.getClass().getName() + " is loaded from "
        + m.getClass().getProtectionDomain().getCodeSource().getLocation());
  }

}

   
    
  








Related examples in the same category