Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Getting CPU Temperature using Java

Posted on 2003-03-10
8
Medium Priority
?
3,519 Views
Last Modified: 2008-03-04
How can I get the CPU temperature in Java ?

0
Comment
Question by:weay
8 Comments
 
LVL 92

Expert Comment

by:objects
ID: 8108724
By calling a native application that returns the information using either Runtime.exec() or via JNI.
0
 

Expert Comment

by:johanhz
ID: 8109319
There is a nice freeware application that does the job for you : MBM (Motherboard monitor).

You can find it at :

http://mbm.livewiredev.com/

The program exposes shared memory that you can use very easily with any programming language.

There are examples with java sourcecode on :

http://www.incoherentramblings.net:8888/cocoon/downloads/MBM_Java.xsp

JOHan.
0
 

Expert Comment

by:johanhz
ID: 8134770
weay,

Did you check the links I gave you?

JOHan.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:weay
ID: 8139862
yes JOHAN and I've tried using the product. However, I don't see it reading my CPU temperature. I've tried it in different machines but it is still the same. I am not sure whether this is because the motherboards are not listed in the supported list. Anyway, I am looking for a more generic solution, if there is any.
0
 

Expert Comment

by:johanhz
ID: 8150244
weay,

This is the most generic solution I know of.
MBM works with all Motherboards that are equipped with temperature control, fan control, etc.

If your BIOS is not equipped with temp reading, then there is no program that can read the temp.
A good way of knowing if your Motherboard supports temp reading is looking in the BIOS. If you don't see the temp readings over there, then your MB probably isn't equiped with temp reading.

JOHan.
0
 

Expert Comment

by:CleanupPing
ID: 9058800
weay:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 35

Expert Comment

by:girionis
ID: 9700507
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- To be PAQed and points NOT refunded.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

girionis
EE Cleanup Volunteer
0
 

Accepted Solution

by:
YensidMod earned 0 total points
ID: 9751327
This question is PAQed  and no points refunded (of 0).

YensidMod
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question