?
Solved

Getting CPU Temperature using Java

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

0
Comment
Question by:weay
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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