Getting CPU Temperature using Java

How can I get the CPU temperature in Java ?

weayAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

objectsCommented:
By calling a native application that returns the information using either Runtime.exec() or via JNI.
0
johanhzCommented:
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
johanhzCommented:
weay,

Did you check the links I gave you?

JOHan.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

weayAuthor Commented:
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
johanhzCommented:
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
CleanupPingCommented:
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
girionisCommented:
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
YensidModCommented:
This question is PAQed  and no points refunded (of 0).

YensidMod
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.