如何使用Java(小程序)来获取系统信息? [英] how to get system information using java (Applet)?
本文介绍了如何使用Java(小程序)来获取系统信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望得到一些具体的系统信息,如;处理器速度,处理器家族,操作系统版本(比如:5.1服务包1),色深,系统目录
I want to get some specific system information such as; processor speed, processor family, OS version (ex: "5.1 Service pack 1"), color depth, system directory.
你有什么想法?
推荐答案
使用 System.getProperties()
返回 java.util.Properties
对象。这包含了所有的系统属性。深入了解的Java更多的API 并看到所有需要的属性都可以给你。
Use System.getProperties()
which returns java.util.Properties
Object. This contains all the system properties. Have a look the Java API for more and see all the needed properties are available for you.
这篇关于如何使用Java(小程序)来获取系统信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文