Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-25-2004, 11:42 PM   #1
LQ Newbie
Registered: Jan 2004
Posts: 12

Rep: Reputation: 0
java /proc (getting system resources)

how can i use java to get system resources of a linux system. I know i have to use the services provided by /proc filesystem in linux.and after getting system resources i can use JNI to use java as frontend(GUI).

can u please share with me any experiences or suggestions u may have?
Old 08-26-2004, 05:55 AM   #2
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
You can read the information in /proc just like normal files/directories in any language. You'll have to parse (read and filter out the info you need) the contents of the proc-files/dirs yourself in the program.

See "man proc", and/or search this forum for "/proc" to get more information. And make sure you know how to read files with java of course.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimal Java/C editor and learning resources jrdioko Programming 3 11-09-2005 09:22 AM
System Resources RySk8er30 Mandriva 2 06-23-2005 06:23 PM
System resources... manofwax Linux - Hardware 2 07-23-2004 08:34 PM
How can I output realtime system resources to a label or textarea? JAVA randomx Programming 6 07-15-2004 06:41 PM
konsole system resources? lectraplayer Linux - Newbie 2 02-07-2004 05:14 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration