开发者

Fetch Windows system temperature with Java

I wrote a small hack that uses Java JNA and TCP sockets to transmit battery information from a Windows 7 system to other systems on my network, and I'd now like to add thermal monitoring functionality to it. Is it possible to monitor system thermal statistics from JNA?

Edit: Forgot to mention that I need a "pure Java" solution (but JNA and friends开发者_开发知识库 are permitted); I'm in a horrible environment that ensures I can't run applications that aren't digitally signed, I don't have access to the digital signature list, and I can't disable the digital signature lockdowns.


Most stuff I've read shows that manufacturers use WMI to expose this information. To allow your Java program to access WMA, check out this thread: Recommended libraries/howtos for using WMI with java?


If you could find a command line utility that works on windows to get sys temp you could call it from a processbuilder in Java.

Stephane

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜