Solution: 1) make your software access the serial port via an interface 2) provide a factory that generates an instance of this interface ON DEMAND, � �i.e. after permission could be set. Use the Java reflection mechanism for that. � �The implementation of the interface uses javax.comm. * IMPORTANT: No import statements for the implementation (and for javax.comm) in your applet! AFAIK this is only an issue for the Win32 javax.comm - other variants postpone library loading... Regards, � � Daniel Ciesinger |------------------------+------------------------+------------------------| | | [EMAIL PROTECTED] | | | | | � � � � An: | | | 16.03.00 07:56 | Javier Valdez | | | | <[EMAIL PROTECTED]> | | | | � � � � Kopie: | | | | [EMAIL PROTECTED]| | | | � � � � Thema: | | | | [OCF] Re: PROBLEM | | | | WITH WIN32COM.DLL | |------------------------+------------------------+------------------------| Hello, Javier Valdez wrote: > [...] > to use Java PlugIn 1.1 is necesary to run applets in OCF 1.2? I cannot give you detailed information on the bevahivor of the Microsoft virtual machine. But I know that there are, or at least were, problems with using javax.comm from within the sandbox of a(ny) browser. This is because in the versions of javax.comm we used, the required DLLs were linked in by static initializers, which did not (and can not) request the permissions/privileges required to link in a DLL. Please check the javax.comm documentation for any "known bugs", and also the corresponding FAQ on Sun's Java homepage. I suggest that you use a PC/SC driver for your card reader, along with the PCSCCardTerminal(Factory). Most likely, you will have to do some browser-specific things before starting OCF in order to reach out of the Java sandbox. See also classes opencard.opt.ms.MicrosoftSystemAccess and opencard.opt.netscape.NetscapeSystemAccess for details on requesting permissions/privileges. Along with the developer documentation for the browser you want to support, you should be able to use OCF's native browser support instead of the Java plug-in. Alas, different versions of your applet will be needed for IE and Netscape, not to mention HotJava :-( regards, �Roland Weber ([EMAIL PROTECTED]) --- > 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.
