Yes, it is possible, We have just completed such a 
project. You are probably having problems with the Java 
securitystuff. Look out for the following:

1. We spent a week(!) trying to get the browsers 
(NetScape and IE) Java VM to work, but failed. We had 
to use Suns Java Plug-in.... (A note: it seems Netscape 
4.x cannot use Comm Driver DLL at all!)
2. Your applet cannot read files or access comm ports 
out-of-the-box (you knew that, right)
3. assuming you use Java CommDriver: dont use Java 
1.1.x - it seems to somehow be incompatible with the 
CommDriver or ? Well, we never got it to work.
4. During tests, scramble security by using the 
javapolicy-tool to set AllPermission. This will allow 
you to run an un-signed applet, which removes one layer 
of complexity. Remember to finetune policy-settings 
afterwards!
5. The Comm Driver is strangely enough also somewhat 
incompatible with Java 2 security, but there is a 
workaround: first time initialization exception should 
be caught and ignored, after that things are fine.
6. Last, but not least: it takes some time to find out 
just where to put all these idiotic \\\".properties\\\" 
files. A good tool is the \\\"findOCP\\\" code-snippet that 
has been posted to this list previously.

Disclaimer: this was my first large Java-project, and 
we had never touched a Java Card before this project 
started 2 months ago. So, there are probably someone 
out there with smarter answers than mine, but I dont 
know if they care to respond. I would be happy if they 
would, then I could build a better project next time!

Good luck,
Jacob W J

Citat Gary Avery <[EMAIL PROTECTED]>:

> hello,
> has anyone tried using OCF in Java applets ?
> i am having a hell of a time getting them to run 
under \\\'appletviewer\\\'.
> have no problems whatsoever when run as Java 
application.
> help !
> gary avery
>
>
>
> ---
> > 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
> !                           opencard-
[EMAIL PROTECTED]
> ! containing the word
> !                           unsubscribe
> ! in the body.


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