---
title: "java 取当前操作系统桌面路径"
author: "chokee"
date: "2011-10-27T16:03:59Z"
tags: []
categories: ["编程语言"]
slug: "java"
draft: false
lastmod: "2011-10-27T16:03:59Z"
id: 1218696
url: "https://chokee.iteye.com/blog/1218696"
---

//当前用户桌面
			File desktopDir = FileSystemView.getFileSystemView()
					.getHomeDirectory();
			String desktopPath = desktopDir.getAbsolutePath();