Hello everyone.
 
I'm developing an application based on smartcard.
I've got installed the OCF 1.1 and 1.1.1 (Convenience package), Sun Comm package and Gemplus Terminals extention to OCF (the gemplus-terminal.jar was last modified on date are 11 february 1999, 18.00.14).
 
I received this exception (I write also the Stack Trace)
 
opencard.core.terminal.CardTerminalException: java.lang.InstantiationException: com/gemplus/opencard/terminal/GemCoreCardTerminal
 at opencard.core.service.SmartCard.handleTerminalFactoryEntries(Compiled Code)
 at opencard.core.service.SmartCard.configureTerminalRegistry(Compiled Code)
 at opencard.core.service.SmartCard.start(SmartCard.java:527)
 at VideoCard.main(VideoCard.java:14)
 
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
My opencard.properties file is
--------------------------------------------------------------------------------------------------
OpenCard.services = opencard.opt.util.PassThruCardServiceFactory
OpenCard.terminals = com.gemplus.opencard.terminal.GemCoreCardTerminal|mygcr|GCR410|COM1
OpenCard.trace = opencard:4 com.ibm:4 com.gemplus.opencard.terminal:8
--------------------------------------------------------------------------------------------------
 
 
This is the testing file
--------------------------------------------------------------------------------------------------
import java.lang.*;
import java.io.*;
 
import opencard.core.terminal.*;
import opencard.core.service.*;
 
import javax.comm.*;
 
class VideoCard {
 
 public static void main(String[] args) {
 
  try {
    SmartCard.start();                        // line 14
  }
  
  catch (Exception e) {
   e.printStackTrace(System.err);
  }
  finally {
   try {
    SmartCard.shutdown();
    }
   catch (opencard.core.terminal.CardTerminalException cte) {
    cte.printStackTrace(System.err);
   }
  }
 }
}
--------------------------------------------------------------------------------------------------

Reply via email to