java如何获取系统的桌面路径 //当前用户桌面路径 File desktopDir = FileSystemView.getFileSystemView() .getHomeDirectory(); String desktopPath = desktopDir.getAbsolutePath(); System.out.println("desktopPath = " + desktopPath);