Re: Making driver for Linux in Java?

From: Mario_5 (mario_zupan_at_inet.hr)
Date: 01/22/04


Date: Thu, 22 Jan 2004 17:34:36 +0100


"Jared Dykstra" <dyksjare@hotmail.com> wrote in message
news:ba84b53e.0401220046.34ed9a79@posting.google.com...
> Tux <mario_zupan@inet.hr> wrote in message
news:<bum9ec$fl2$1@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

OK. It doesn't need to be a driver but can I make Java application
which reads from USB devices but for that devices driver doesn't exist?
p.s.
jUSB package for Java exist but I can't understand can I use it if Linux
doesn't see my device because there is not proper driver for it.



Relevant Pages

  • Re: jdbc permissions
    ... Using the SQL Server 2000 Driver for JDBC on a Java 2 Platform ... additional permissions. ...
    (microsoft.public.sqlserver.server)
  • Re: Accessing DB2 with Java?
    ... We use DB2 a lot, however, we have not tried to access it from the HP 3000. ... I would research if the type 4 driver requires a newer JVM ... Subject: Accessing DB2 with Java? ... connect to the JDBC listener on the IBM, ...
    (comp.sys.hp.mpe)
  • Re: Accessing SQL Server
    ... > Philip A. Chapman wrote: ... > Got it up and running (after the standard two hours or so trying to get Java ... > SQL Server 7, but the only drivers I've been able to find are for SQL Server ... The jtds driver supports SQL Server 6.5 and better. ...
    (Fedora)
  • Re: Java vs SQL Server float datatype limits
    ... However Java double has a much wider range: ... Joe Weinstein at BEA Systems ... So I would have imagined that an SQL Server driver either handle the ... The JDBC specification says something about the driver being expected to coerce the Java data type into the correct data type for the server the driver is representing. ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: Making driver for Linux in Java?
    ... > for Linux in Java, for some USB device? ... * It doesn't make sense to make a driver in a high-level language ...
    (comp.lang.java)