Is there a way (and if so how?) to access plugged-in resources on my computer with java? Like the microphone, the speakers and the computer monitor? I’m not talking about mainboard, cpu, etc. this is reserved for C.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. The idea of microphone, speaker, and monitor are all abstracted in Java. You can draw things, which will generally show up on the monitor. You can get audio input, which generally comes from the microphone, and you can output sound, which generally comes through the speakers. However, Java doesn’t concern itself with how the platform implements these specific features, and Java is unaware of anything beyond the abstract layer.
However, you can extend Java by writing native libraries (JNI) to do platform specific things if you need further information or control.