Hello,
 
I'm a new at Java & Smart card development so could any one explain me how to install OCF1.1.1 in a MS VisualJ++ 6.0 environment.
 
My OCF-directory is d:\OCF1.1.1 and I've already installed the OCF-package from Gemplus for my GemPC410.
 
I set the following items in the project CLASSPATH:
 
    D:\OCF1.1.1\LIB\gemplus-terminals.jar
    D:\OCF1.1.1\LIB\base-opt.jar
    D:\OCF1.1.1\LIB\base-core.jar
 
But the following program won't work(from Smart Card JavaBook):
 
import opencard.core.service.SmartCard;
import opencard.core.service.CardRequest;
import opencard.opt.iso.fs.FileAccessCardService;
import opencard.opt.iso.fs.CardFile;
 

public class OCF
{
 public static void main(String[] args)
 {
  System.out.println("reading from card");
  try {
   SmartCard.start();
  } catch (Exception e) {
   e.printStackTrace();
  } finally {
   try {
    SmartCard.shutdown();
   } catch (Exception e) {
    e.printStackTrace();
   }
  }
  
 }
}
 
 
I get the following error:
 
    java.lang.ClassNotFoundException: com/gemplus/opencard/terminal/GemplusCardTerminalFactory
 
Can anyone help and say what I have to step by step.
 
Thanks,
 
Davy

Reply via email to