Hi,

i try to write an applet using OCF.
My configuration is Win98, OCF12, GCR410, netscape4.7, jdk1.1.8  and
java plugin 1.1

According to what i could find in OCF mailing list archive and OCF-PG
i have :
- written a simple applet that does not use browser specific
systemAccess and just does SmartCard.start(); and compiled it with jdk
1.1.8
- generated test certificates and signed this applet
- converted html file for using java plugin instead of netscape VM
- correctly set all classpathes

As an application it works.
As an applet it works under Sun's AppletViewer
Using it in netscape/javaPlugIn1.1 i have such boring exception :
********************
Java(TM) Plug-in
Using JRE version 1.1.8
User home directory = C:\WINDOWS
Proxy Configuration: no proxy
Request focus
JAR cache disabled.
sun.applet.AppletSecurityException: checkread
 at sun.applet.AppletSecurity.checkRead(Compiled Code)
 at sun.applet.AppletSecurity.checkRead(AppletSecurity.java:352)
 at java.io.FileInputStream.<init>(FileInputStream.java:50)
 at java.io.FileInputStream.<init>(FileInputStream.java:75)
 at
opencard.core.util.SystemAccess.loadProperties(SystemAccess.java:120)
 at opencard.opt.util.OpenCardPropertyFileLoader.load(Compiled Code)
 at opencard.opt.util.OpenCardPropertyFileLoader.loadProperties(Compiled
Code)
 at opencard.core.service.SmartCard.start(SmartCard.java:520)
 at OCFTestApplet.init(Compiled Code)
 at sun.applet.AppletPanel.run(Compiled Code)
 at java.lang.Thread.run(Thread.java:466)
*********************************

I think what is wrong is that no policy is defined but i do not really
know how it can be defined in  1.1 model and where it has to be stored

Does someone who has succeeded writting such an applet in the same
platform can help ?

Thanks,
Sebastien.

begin:vcard 
n:Jean;Sebastien
tel;fax:33 3 20 43 47 12
tel;work:33 3 20 33 61 32
x-mozilla-html:TRUE
url:http://www.lifl.fr/RD2P
org:equipe RD2P;Laboratoire d'Informatique Fondamentale de Lille
version:2.1
email;internet:[EMAIL PROTECTED]
title:Allocataire de recherche / Moniteur
adr;quoted-printable:;;USTL / LIFL=0D=0ARD2P, bat M3, b111=0D=0A59 655 Villeneuve d'ascq cedex=0D=0AFrance;;;;
fn:Sebastien Jean
end:vcard

Reply via email to