Skip to main content

Read System informations

5 replies [Last post]
delljava
Offline
Joined: 2008-04-14
Points: 0

Hello,
i want to know why java haven't an API to get System informations like: Motherboard informations, HDD or CPU serial number, CPU clock, HDD size ..etc
Thank you

Message was edited by: delljava

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
delljava
Offline
Joined: 2008-04-14
Points: 0

Thank you for your response.
for mthornton comments i think its good idea with mac adresses but put a lot of bugs to your application is not very good idea.
in conclusion for me i think that integrate api to get system information is good.
Thank you

Message was edited by: delljava

mthornton
Offline
Joined: 2003-06-10
Points: 0

You can get the MAC addresses of network interfaces (as of Java 6).

The main use for this information (and the other data you wanted) is in the implementation of software licencing restrictions. Unfortunately this approach is not very secure and usually ends up causing problems for legitimate users. On line checks to a licence server tend to be more effective and don't need this system information.

Currently the most effective way to verify licence rules is to include enough bugs in your application that any users will regularly call your support line ...

linuxhippy
Offline
Joined: 2004-01-07
Points: 0

Because almost nobody needs it and its very specific to the target system.

delljava
Offline
Joined: 2008-04-14
Points: 0

Ok thank you for your response.
i'm with for the second because java is platform independent but for the first i'm sorry i think is not a cause.
thank you

fred34
Offline
Joined: 2004-06-19
Points: 0

Further to linuxhippy's comment, I think that while there maybe someONE who needs it, half the people who think they need it don't or want it for the wrong reasons. I think this is a case of protecting people from their own stupidity. This is rarely a good reason for withholding an API (in case people misuse it) but here if you could access this sort of stuff, people are only going to find ways to abuse it or to implement completely uninformed optimisations based on what they can read about the system.