main方法:

ProtectionDomain pd = ProjectConfig.class.getProtectionDomain();  

CodeSource csc = pd.getCodeSource();  

System.err.println(csc.getLocation()); 

查看jar加载路径

 

相关文章:

  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-12-08
  • 2021-11-15
  • 2021-08-08
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-11-16
  • 2022-02-09
  • 2021-12-20
  • 2022-12-23
相关资源
相似解决方案