FileSystemView fsv = FileSystemView.getFileSystemView(); File com=fsv.getHomeDirectory(); System.out.println(com.getPath()); //这便是桌面的具体路径