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-26-2004, 12:42 AM   #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, 06:55 AM   #2
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
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 10:22 AM
System Resources RySk8er30 Mandriva 2 06-23-2005 07:23 PM
System resources... manofwax Linux - Hardware 2 07-23-2004 09:34 PM
How can I output realtime system resources to a label or textarea? JAVA randomx Programming 6 07-15-2004 07:41 PM
konsole system resources? lectraplayer Linux - Newbie 2 02-07-2004 06:14 PM

All times are GMT -5. The time now is 08:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration