Just in case anyone ever comes to the mailing list archives with this same problem, here's the resolution although I can't explain it: I had to copy comm.jar to the <jdk>/jre/lib/ext directory for it to work. I understand that this is the desginated place for official Java extensions in 1.2+, but I still don't get why the javax.comm samples ran fine but OCF did not, given the same execution environment. Any Java gurus out there want to try to answer that one? e.g.: cd c:\commapi\samples\BlackBox java -classpath $BUILDCLASSPATH BlackBox -> (works fine, opens both serial ports) cd <work area>\opencardtests java -classpath $BUILDCLASSPATH StartOpenCard -> (fails, can't find any serial ports) Regarding Win2k bundled support for card readers: I originally had to turn off the smart card services in Win2K because they had grabbed the port when I initially connected th reader. Another wierdness here is that I had to physically disconnect and reconnect the reader after stopping the services in order to be able to get ownership of the port from another process! -----Original Message----- From: Christophe Muller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 3:39 AM To: Ruch, Scott Subject: Re: [OCF] javax.comm problems w/ OCF & Gemplus CardTerminals 4.1 Hello, Ruch, Scott wrote: > I'm obviously tripping on some type of configuration > error here. Can anyone suggest what to look for? I can't really see any "classic" problem here in your description.. but maybe advice a couple of checks.. > - Gemplus GCR410-SL / gemplus-terminal-4.1 package Can you check that you only have gemplus-terminal-4.1.jar in your CLASSPATH, or better I suggest to put all the jar files you need (comm, base-core, base-opt, sb-demo, and gemplus-terminal-4.1) into you java\jre\lib\ext\ sub-directory and set CLASSPATH to "". Specifically, I would advice to check that you don't have both gemplus-terminal-4.1.jar (the right one) and gemplus-terminal.jar, a buggy one that is unfortunately included into the regular distrib. As with Java when there are classes objects in different locations we never know which ones are chosen, it might cause your problems.. I'm interested to know if it's the case! ;-) > OpenCard.terminals = > com.gemplus.opencard.terminal.GemplusCardTerminalFactory|gc > r410sl|GCR410|COM1 Can you also check that this information fits on one long line, not two or three ? What else can I suggest? Maybe to set the traces high for our CardTerminal, e.g., OpenCard.trace = opencard:4 com.gemplus:8 and see what it gives... Do not hesitate to send me more info if you have some. If I can't figure them out, I'll forward to the people involved in CardTerminal development (which is not my domain) but I doubt that there is a deep problem here as ususally everything is working ok.. Last thing on Win2000 is that PC/SC is bundled and when a reader is connected, ususally "grabs" the ports and so they are locked for an other application.. But as the javax.comm demos are running ok, it's probably not that... and the error message would be more like "port in used" or something like that.. Hope it'll help. Cheers, Christophe. = Besides the device, the box should contain: = = * Eight little rectangular snippets of paper that say "WARNING" = = * A plastic packet containing four 5/17 inch pilfer grommets and = = two club-ended 6/93 inch boxcar prawns. = = YOU WILL NEED TO SUPPLY: a matrix wrench and 60,000 feet of tram = = cable. IF ANYTHING IS DAMAGED OR MISSING: You IMMEDIATELY should = = turn to your spouse and say: "Margaret, you know why this country = = can't make a car that can get all the way through the drive- = = through at Burger King without a major transmission overhaul? = = Because nobody cares, that's why." = = WARNING: This is assuming your spouse's name is Margaret. = = -- Dave Barry, "Read This First!" = -- ------------------------------------------------------------- [EMAIL PROTECTED] - Gemplus Research Lab Phone: +33 4-42-36-57-83 | Disclaimer: I don't speak for Gemplus Gemplus doesn't speak for me... it is better that way! ------------------------------------------------------------- --- > 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.
