• Post Reply Bookmark Topic Watch Topic
  • New Topic

OS-independent system information  RSS feed

 
Lin Shen
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does Java support displaying the system information such as CPU model, CPU speed, cache size and etc.?

If so, which Java class support methods for doing this?

If not, any suggestions to extract system information on differnt OS using Java.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, there's nothing in the standard API for this.

You could roll your own using JNI, but I suspect that you'd find an existing library using Google.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For linux, you don't need jni, but might use the /proc system.
Simply read /proc/cpuinfo.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!