Tux <ma*********@inet.hr> wrote in message news:<bu**********@sunce.iskon.hr>...
Is it possible and does someone try to make driver
for Linux in Java, for some USB device?
Could Java do that ?
I saw jUSB package but it seems that works only with the
devices which Linux already see.
The short answer is no. ...well kinda. Consider these two factors:
* It doesn't make sense to make a driver in a high-level language
(like Java) unless the rest of the system is also a high level
language so it can easily interface to the driver.
* Java is designed to be hardware-independent. That is reflected in
the 'write once, run anywhere' mantra. If you write code to interface
to the hardware directly, you have to write native code. You would
then have to recompile this native code for each OS and ship the
correct shared library for others to use it.
So you could make a native driver for use by other Java apps...but is
this what you want?
---
Jared Dykstra
http://www.bork.org/~jared