0

hello,

I am working on networking project.
I have made client server program through socket program.

Now, i don't know which library is used to detect hardware i.e. attached on machine.

mean how can i detect keyboard is attached to my pc or not?
mean how can i detect mouse is attached to my pc or not?
mean how can i detect LCD/Display is attached to my pc or not?

which class/library is used for detecting hardware attached on PC?

Thanks

3
Contributors
4
Replies
33
Views
2 Years
Discussion Span
Last Post by JamesCherrill
1

for tasks like this, Java is not the right language. you should use one who has more "connection" with the os and such.

0

What do you need to know about - all the hardware, or just the presence of a standard input device (keyboard) and/or a screen?

0

hello james,

i want to know all the hardware devices attached to particular PC.
Because i want to transfer that information to network administrator.

Thanks

1

I think you best option is to use ProcessBuilder to run an external command or app that writes all that info to a file or output stream, from where you can capture and forward it. The command or app will depend on what version of what operating system you are running.
I don't know of any standard Java API that will give you the information directly.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.