Folks,
I'm obviously tripping on some type of configuration
error here. Can anyone suggest what to look for?
Configuration:
- Windows 2000 (also tried on Win98, same problems)
- JDK 1.3 / javax.comm 2.x / OCF 1.2 base
- Gemplus GCR410-SL / gemplus-terminal-4.1 package
I have the javax.comm package installed and it's files
copied hither and yon, according to the README. The
sample programs (BlackBox, SimpleRead, etc.) work fine
and are able to find the serial ports without any
problems. The OpenCard sample programs - even the
simplest ones - cannot find the serial port I specify
in my opencard.properties file:
OpenCard.terminals =
com.gemplus.opencard.terminal.GemplusCardTerminalFactory|gc
r410sl|GCR410|COM1
Adding some trace to the Gemplus SerialComm layer shows
that no matter what I put for a serial port, I always
get a NoSuchPortException.
I use the same CLASSPATH (I set it explicitly on the command
line) for compilation and runtime. I tested my enviroment
against the javax.comm samples and they work fine, but the
same environment doesn't work with OCF/Gemplus.
Even the following trivial code, lifted from the javax.comm
samples, produces no output when added to a failing
OCF sample program:
CommPortIdentifier portId;
Enumeration portList;
portList = CommPortIdentifier.getPortIdentifiers();
while (portList.hasMoreElements()) {
portId = (CommPortIdentifier) portList.nextElement();
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
System.out.println("Port found: " + portId.getName());
}
}
Any suggestions appreciated.
Thanks,
Scott
---
> 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.