Access local COM-port on client from an Applet
- From: "JimWilh" <jim.wilhelmsen@xxxxxxxxx>
- Date: 30 Jun 2005 00:41:02 -0700
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
.
- Follow-Ups:
- Re: Access local COM-port on client from an Applet
- From: JimWilh
- Re: Access local COM-port on client from an Applet
- Prev by Date: Re: drawing arrows...
- Next by Date: Re: drawing arrows...
- Previous by thread: set VM variables using java program
- Next by thread: Re: Access local COM-port on client from an Applet
- Index(es):
Relevant Pages
|