Hello,
I have a little application that detects a card insertion (SLB JavaCard) and attempts 
to instantiate an applet proxy for it - however 
I get a ClassNotFound (HealthProfessionalProxy) when I try the getCardService() method 
of the SmartCard object.  The class file HealthProfessionalCardProxy.class is in the 
same JAR file as the application class.

Am I incorrectly omitting something ?  I have seen several opencard.properties files 
on the system and have tried including HealthProfessionalCardProxy in all of them to 
no avail.

The cardInserted method that causes the error is as follows:


public void cardInserted(CardTerminalEvent event)
{
        if (smartcard == null){
                try{
                        terminal = event.getCardTerminal();
                        smartcard = SmartCard.getSmartCard(event,new 
CardRequest(CardRequest.ANYCARD,null,null));
                        slotID = event.getSlotID();
                        System.out.println("Card Inserted - SmartCard, CAD and Slot 
reference set");
                                        System.out.println(smartcard.toString());
        System.out.println(terminal.toString());
        System.out.println(slotID);
        if(smartcard!=null){
                System.out.println("SmartCard object NOT null, attempting to get 
CardService");
                try{
                hpcp = (HealthProfessionalCardProxy) 
smartcard.getCardService(HealthProfessionalCardProxy.class,false);
                }
                catch (CardServiceException cse){
                        System.out.println ("CardServiceException: ");
                        System.out.println (cse.getMessage () );
                }
                catch (ClassNotFoundException e){
                        System.out.println(e.toString());       
                }
                System.out.println("Got CardService" + hpcp.toString());
        }
        }
        catch (Exception e){
                System.out.println(e.toString());
        }
}
}

Any explanations of what I am doing incorrectly would be mot welcome,
Thanking you all in advance,
Paul

_____________________________________

Get your free E-mail at http://www.ireland.com


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