954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Controlling Hardware

Hi Everybody,

I was wondering if anybody knew if you can controll hardware with Java (open the CD drive, etc.).

Thank you in advanced,
C++

Ghost
Posting Whiz
352 posts since Aug 2004
Reputation Points: 12
Solved Threads: 2
 

Yes, no, maybe :)

Usually not directly. But through JNI you can do almost anything if you can create (or have access to) a JNI stub to a library in a native language.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

First, THANK YOU FOR RESPONDING!
Second, can you please explain how to do that with JNI?

Thnks,
C++

Ghost
Posting Whiz
352 posts since Aug 2004
Reputation Points: 12
Solved Threads: 2
 
starsunited
Light Poster
44 posts since Dec 2004
Reputation Points: 11
Solved Threads: 1
 

You can use free or commercial libraries for JNI,
they have different quality, hope you will find free and working.
Example - JNIWrapper

miri
Newbie Poster
10 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You