Ismael Blesa Part wrote:


> Hi Thomas.
>
> [EMAIL PROTECTED] wrote:
>
> > Factories that are registered in the opencard.properties file are only found if
> > they are in the classpath. For this reason, your program runs as an application
> > but not as an applet.
> >
> > If you want to use factories that are located in the same JAR file from as the
> > applet, you have to register these factories explicitly by adding a statement
> > like this to your applet:
> >
> >           CardServiceRegistry.getRegistry().add(new
> > com.ibm.opencard.factory.MFCCardServiceFactory());
>

First of all I think that I should use
CardTerminalRegistry.getRegistry().add(new
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory());
to set the terminal to use and after I should configure the cardServiceFactory with :
 CardServiceRegistry.getRegistry().add(new MyCardServiceFactory());

Then, I don't need to use the opencard.properties.

It is all this correct?

I have still an error with the compilation:

O:\Projects\OCFtest\web>javac-ea -classpath .;..\..\TODO_OCF.jar  *.java
OCFTest.java:42: method add(opencard.core.terminal.CardTerminal) in class openca
rd.core.terminal.CardTerminalRegistry cannot be applied to (com.ibm.opencard.ter
minal.pcsc10.Pcsc10CardTerminalFactory)
CardTerminalRegistry.getRegistry().add(new

Thanks.







>
> In my case I use the pcsc factory, then, should I use :
> CardServiceRegistry.getRegistry().add(new
> com.ibm.opencard.factory.pcsc10.Pcsc10CardTerminalFactory());
>
> And this line should be writen before the smartcard.start() method is call.
>
> I cannot compile, I get an error:
>
> O:\Projects\OCFtest\web>javac-ea -classpath .;..\..\ALL_OCF.jar  *.java
> OCFTest.java:38: class Pcsc10CardTerminalFactory not found in package com.ibm.op
> encard.factory.pcsc10
> com.ibm.opencard.factory.pcsc10.Pcsc10CardTerminalFactory());
>                                ^
> OCFTest.java:37: variable CardServiceRegistry not found in class OCFTest
> CardServiceRegistry.getRegistry().add(new
>
> What am I doing wrong?
>
> chrees
>
> >
>
> >
> > Best regards,
> >
> > Thomas
> >
> > Thomas Schaeck
> > IBM Pervasive Computing Division - Smart Card Solutions
> > E-mail: [EMAIL PROTECTED]       Tel.: ++49-7031-16-3479       Fax.:
> > ++49-7031-16-4888
> > Address: IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032
> > Boeblingen, Germany
> >
> > "Ismael Blesa Part" <[EMAIL PROTECTED]> on 15.09.99 09:46:05
> >
> > Please respond to "Ismael Blesa Part" <[EMAIL PROTECTED]>
> >
> > To:   Bartlomiej Paszkowski <[EMAIL PROTECTED]>
> > cc:   "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> (bcc: Thomas
> >       Schaeck/Germany/IBM)
> > Subject:  Re: [OCF] OCF and applets
> >
> > Hi Bartlomiej Paszkowski,
> >
> > I have the same problem that you. I have done an OCF application that works as a
> > standalone application and as an applet. As application it works fine, but as an
> > applet It throws an error:
> > ClassNotFoundException:
> > com/ibm/opencard/terminal/pcsc10/Pcsc10CardTerminalFactory
> >
> > I dont understand why I get this error. I am using in both cases (applet,
> > application) the same jarfiles.
> >
> > Have you found out something about this?
> >
> > Cheers.
> >
> > Ismael Blesa
> >
> > Bartlomiej Paszkowski wrote:
> >
> > > Hi,
> > >
> > > I have a strange problem with jar files. A GPKCardServiceFactory (my code
> > > for a GPK card (Gemplus)) is not seen in the jar file (in the APPLET tag
> > > of a HTML page) and Netscape Navigator or appletviewer generates
> > > classNotFound exceptions  but when the same jar is included into
> > > <classpath> everything works fine. Any ideas ?
> > >
> > > Thanks in advance,
> > >
> > > Bartek.
> > >
> > > Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
> > > access to documentation, code, presentations, and OCF announcements.
> > > -----------------------------------------------------------------------------
> > > To unsubscribe from the OCF Mailing list, send a mail to
> > > "[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
> > > message.
> >
> > Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
> > access to documentation, code, presentations, and OCF announcements.
> > -----------------------------------------------------------------------------
> > To unsubscribe from the OCF Mailing list, send a mail to
> > "[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
> > message.
>
> Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
> access to documentation, code, presentations, and OCF announcements.
> -----------------------------------------------------------------------------
> To unsubscribe from the OCF Mailing list, send a mail to
> "[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
> message.

Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
access to documentation, code, presentations, and OCF announcements.
-----------------------------------------------------------------------------
To unsubscribe from the OCF Mailing list, send a mail to
"[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
message.

Reply via email to