Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SecureChannel Converter Problem

966781Jan 29 2013 — edited Feb 13 2013
Hi,

iam trying to communicate over a secure channel with the host application.
But when i try to create a SecureChannel object:
package mk.sec.chn;

import org.globalplatform.SecureChannel;

import javacard.framework.APDU;
import javacard.framework.Applet;
import javacard.framework.ISOException;


public class Test extends Applet {

	private SecureChannel chn;   //this does not work...
	
	public Test(byte[] bArray, short bOffset, byte bLength) {
		register(bArray, (short) (bOffset + 1), bArray[bOffset]);
	}

	public static void install(byte[] bArray, short bOffset, byte bLength) {
		new Test(bArray, bOffset, bLength);
	}

	public void process(APDU apdu) throws ISOException {
		
	}
}
i get an error "Converter: Java property jc.home is not set".
Every other applet works fine but when i try to use something from the globalplatform i get this error.

What is this for a property and how to set it right ?

Best regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2013
Added on Jan 29 2013
10 comments
612 views