获取当前系统文件编码 System.getProperty("file.encoding"); 获取当前系统桌面路径 FileSystemView.getFileSystemView().getHomeDirectory();