jar包读取外部文件
public static void main(String[] args) { String path1 = System.getProperty("user.home");//当前登录用户目录 String path2 = System.getProperty("user.dir");//jar包所在目录名 System.out.println(path1+"=="+path2); }

public static void main(String[] args) { String path1 = System.getProperty("user.home");//当前登录用户目录 String path2 = System.getProperty("user.dir");//jar包所在目录名 System.out.println(path1+"=="+path2); }
