have a look at www.rxtx.org for communication via the javacomm api's in
a portable way... even on this windows with fences :)
just 2ct
bax
Am Die, 2002-03-05 um 11.54 schrieb Arvind Kumar Itagi:
> Hi All,
>
> Can any one help me ??
>
> Problem: While loading the win32com.dll file through applet.
> ------------------------------------------------------------
> When I use java application, to communicate with the card reader
> which is connected to the COM1/COM2 port, it is able to
> load the win32com.dll file which exists in jre\bin and communicate
> with the card reader.
>
> But, when I run the same code from the applet it is giving me an error
> "CardTerminalException". If I put additional code (see below) to load the
> .dll file
> it works fine without any problem.
>
> String drivername = "com.sun.comm.Win32Driver";
> try {
> javax.comm.CommDriver driver = (javax.comm.CommDriver)
> Class.forName(drivername).newInstance();
> driver.initialize();
> }catch (Exception e){
> System.out.println("just do nothing, it doesn't really matter");
> e.printStackTrace();
> }
>
> How to avoid this ?
>
> Thanks in advance.
>
> Regards,
> Arvind Kumar
>
>
> ---
> > Visit the OpenCard web site at http://www.opencard.org/ for more
> > information on OpenCard---binaries, source code, documents.
> > This list is being archived at http://www.opencard.org/archive/opencard/
>
> ! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
> ! to
> ! [EMAIL PROTECTED]
> ! containing the word
> ! unsubscribe
> ! in the body.
>
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.