954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

java code that display cpu ver, cpu speed and ram size.

Hi guys!!!
i really need your help, i have an assignment due very soon. Its a java application and java applet, it should display the cpu ver, cpu speed, ram size and hard disk size of the lacal machine. PLZ help guyz

nhlagumbi
Newbie Poster
6 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

no, we're not going to do that.
Not only is it impossible, it's not our job to do your homework.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

I doubt its impossible, the information is on the OS, I think its possible, if it wasnt, why have an assignment on it.

cms271828
Junior Poster
123 posts since Oct 2006
Reputation Points: 20
Solved Threads: 4
 

This is how far I was able to go with search in 10 min

public class TestCPU 
{
	public static void main(String[] args) 
	{
		System.getProperties().list(System.out);
	}
}

One of otputed values issun.cpu.isalist= which before java 1.6 provided procesor type as pentium mmx etc. However it is recently reported as bug and does not work ( report )

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

yes, that will output some things, but not what he is asking for...

if it wasnt, why have an assignment on it.

because teachers aren't the smartest bunch on the block. Quite possibly the "assignment" was updated from one that uses a platform specific language with a custom library the kids have to call to get the information, with the only thing changed the deletion of the custom library and the insertion of the word "Java applet".

Or it's not an "assignment" at all, but OP just said it is to make it sound more "uregtn".

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

just to say thanks for your help. duckman its really was an assignment for Distributed Systems Prac, third year module.

nhlagumbi
Newbie Poster
6 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You