Access local COM-port on client from an Applet



I'm making an applet for registrating data into a database. In this
case, I have written a class that reads data from a local COM-port,
where I have attached a TAG-reader. This class works great in a local
java program on the client (I have used the java.comm libraries).

Now I want to use this class in an applet. And my questions are:
How can an applet use this class to access the COM-port on the client?

Does an applet use the libraries on the client, or on the server that
the applet resides?

The class is called ReadPitTag, and have a constructor with the name of
the com-port (ReadPitTag readPit = new ReadPitTag("COM1");)
Then I call function readPit.isDone() in a while loop. This returns
true when tag is read. At last I call readTag.getResult() that returns
the result as String.

I have tried it in an applet on my local PC where both the applet and
the libraries are, and then it just stops when I call the constructor
without giving any error messages.

Jim

.



Relevant Pages

  • Re: unloading the native library from applet.
    ... > I am using a signed applet, that is using the native libraries. ... i am able to access the libraries for the first time. ... > another browser window, it works fine. ...
    (comp.lang.java.help)
  • unloading the native library from applet.
    ... I am using a signed applet, that is using the native libraries. ... i am able to access the libraries for the first time. ... ..dll files i am using is locked by another program. ...
    (comp.lang.java.help)
  • Re: Redirect Standard output to keyboard port
    ... > Which libraries does the applet use? ... Is it the local libraries on the ... > client, or th libraries on the server, in which the applet reside? ... http://www.LensEscapes.com/ Images that escape the mundane ...
    (comp.lang.java.programmer)
  • Re: Redirect Standard output to keyboard port
    ... Which libraries does the applet use? ... Is it the local libraries on the ... Doesn't the applet have limited access to the client? ...
    (comp.lang.java.programmer)