Hi Enric.

I have two jar files. One with the opencard classes (using the rejar tool I have
created only  a jar file), an another with the all the classes developed by me.
Then on the /jre/lib folder I put the opencard classes jar file and also the
opencard.properties where I do not specify the OpenCard.services. On the applet I
register it

CardServiceRegistry.getRegistry().add(new MyCardServiceFactory());
and after I make
    CardRequest cr = new CardRequest (MyCardService.class);

and on the applet page in the class tag I specify the two jar files. The jar that
contains all your code have to be signed.



Eric Tang wrote:

> > Hi Eric,
> >
> > You can put your jar file on the "..program files/javasoft/jre/lib" and on the
> > applet page you have to reference this jar file on the class tag.
>
> Thx , i have tried to place the MultOsFactory.class in the path ..but still Can't
> find that class file.
> As i pack all things that written by me( CardServices, Main Applet ,Service
> Facotry) in a Jar file,
> and signed it with jarsigner, then place all the OCF core/opt/terminals jar files
> into that JRE/LIB , i can
> successfully start the terminal, but fail to init the Service (as MultOsFactory
> Class Not Found!).
> my applet tag..like :
> <EMBED ........ code="SmApplet.class" archive="Sm.jar"..........>
> but it seems that java plugin won't try to find the classes packed in that jar
> file, even i copy this Sm.jar into
> that lib...also can't !....As i want the "Sm.jar" downloadable from internet, so i
> don't want to place it in local...
> otherwise, i can simply write an application rather than an Applet........
>
> > Have you solved the problem when the user reloads the page that contains the
> > applet: using the reload button, or using the arrows, or navigating back
> > trough links.
> >
> > I have experienced some bug on 1.1.1 and now with 1.2 I have the same errors.
>
> As i still can't ....sucessfully start my applet...so i don't know........



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