Hello Casey,

you have to specify the card terminal you want to use in
opencard.properties.
I use the following entry to do so:


#Pure Java GCR Reader:
#GemPlus version
OpenCard.terminals =
com.gemplus.opencard.terminal.GemplusCardTerminalFactory|Fridolin|GCR410|COM1

#PCSC Migration
#OpenCard.terminals =
com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminalFactory

#PCSC
#OpenCard.terminals =
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory


This works with a Gemplus GCR410 reader when JAVAXX comm API is
installed.
If you want to use a PCSC reader (or use IBM migration interface) you
have to activate the corresponding line -
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory (or
com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminalFactory) - just by
removing the comment specifier '#' and putting it in front of the
com.gemplus.opencard.terminal.GemplusCardTerminalFactory|Fridolin|GCR410|COM1
entry

;-)
Hans

Shawn Casey Elliott schrieb:
> 
> I figured that part out, OCF was looking in some weird place for the
> opencard.properties.
> note you can see where yours is looking by running the following code...
> import java.util.Properties;
>    public class findOCP {
>        public static void main(String[] argv) {
>         Properties props = System.getProperties();
>         System.out.println("Looking for OpenCard Properties file in:\n\t"
>            + props.getProperty("java.home") +
> "\\lib\\opencard.properties\n\t"
>            + props.getProperty("user.home") + "\\.opencard.properties\n\t"
>            + props.getProperty("user.dir")  + "\\opencard.properties\n\t"
>            + props.getProperty("user.dir")  + "\\.opencard.properties\n");
>        }
>    }
> However I still have some problems, and it is the following...
> ------------------------------------------------------------
> Starting demo...
> ------------------------------------------------------------
> start use case: get information about registered terminals
> 
> Exception in thread "main" java.lang.NoClassDefFoundError:
> opencard/core/termina
> l/CardTerminalFactory
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
>         ....etc etc etc
> 
> thanks
> Casey
> 
-- 
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Hans Demski (mailto:[EMAIL PROTECTED])
Institute MEDIS, GSF Research Center (http://www-mi.gsf.de)
phone: +49-89-3187-4179, fax: +49-89-3187-3008
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>


---
> 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.

Reply via email to