ProtectionDomain: getCodeSource() : ProtectionDomain « java.security « Java by API






ProtectionDomain: getCodeSource()

  

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