---
title: "System.getProperty(\"os.name\")"
author: "eleopard"
date: "2012-06-05T13:54:44Z"
tags: []
categories: ["编程语言"]
slug: "system-getproperty-os-name"
draft: false
lastmod: "2012-06-05T13:54:44Z"
id: 1551855
url: "https://eleopard.iteye.com/blog/1551855"
---

当使用
```java
System.getProperty("os.name");
```
时请务必检查开发环境是否以某种系统兼容模式运行的