Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Detect Local System Info( both h/w and s/w) using JNI  RSS feed

 
Saurabh Vyas
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I want to detect the Local System's Informations like,
-> Total System Boot Time, Last Boot Time
-> Processor name, type ,etc.
-> Total Memory of Hard-disk, Total Free Memory
-> All the processes currently running on the System
-> Various Conencted Devices ie. serial ports, hardwares,etc.
-> Detect wether the system is connected in network or not.
-> Detect the printer attached to the system or in network
-> Memory capacity of various drives.
I tried a lot to detect all these thing but I am finding it hard.If any one can help me for any of the above problem than I would be thankful.I know that it is possible usin JNI technology,but can anyone help me as to how to do that.plz help with detail explanation if using JNI or other advanced technology.
Thank You.
 
Joe Ess
Bartender
Posts: 9428
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are lucky enough to be using Linux, you can access much of that information through the proc filesystem using standard Java IO. That's why it's been said: "Buying proprietary software [i.e. Microsoft Windows] is like buying a car with the hood welded shut." Bob Young - RedHat Software
If you are stuck with Windows, here's the JNI Documentation and start studying up on that Win32 API. Since this type of programming is very platform-specific, and being platform independent is a goal of Java, I wonder if you are using the correct tool for the job. It would probably be easier to use a tool better suited to your deployment environment.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!