Page 1 of 2

how to make JCIDE support NXP card.

Posted: Fri Jan 17, 2020 4:46 am
by kuafu
nxp didn't support int type, so make it false.
And The latest JCIDE support jcop converter. Using it.

Re: how to make JCIDE support NXP card.

Posted: Fri Jan 17, 2020 4:47 am
by kuafu
Please set the property of project.

Re: how to make JCIDE support NXP card.

Posted: Fri Jan 17, 2020 4:49 am
by kuafu
Don't send me private message throught javacardos . I didn't know how to reply it .Please ask question on the forum.

Re: how to make JCIDE support NXP card.

Posted: Fri Jan 17, 2020 11:20 am
by priyankap
I tried to follow the steps you mentioned to change converter to JCOP 3.0.1 and -i is set to 'False'. But the CAP file of java applet is still not getting uploaded. I am getting the below error:

Code: Select all

Connect successful.
Download Cap begin...
Download Cap error: Download cap file failed. Send: 80 E6 02 00 17 0A D1 56 00 01 32 0A 64 65 6D 9F 08 A0 00 00 00 03 00 00 00 00 00 00, Recv: 6A 88.
Install Applet begin...
Install Applet error: Install Applet failed. Send: 80 E6 0C 00 29 0A D1 56 00 01 32 0A 64 65 6D 9F 0B D1 56 00 01 32 0A 64 65 6D 9F 01 0B D1 56 00 01 32 0A 64 65 6D 9F 01 01 00 02 C9 00 00, Recv: 6A 88.

Re: how to make JCIDE support NXP card.

Posted: Sat Jan 18, 2020 11:38 am
by ThePhoenyx
I'm using the new version 5.x of the JCIDE, and I can't find the property sheet you are showing above. I've looked at anything that had config in the name and right clicked everything else, both in the wallet demo and the wallet demo applet. Can you help me locate the new version of it? Thanks in advance!

Re: how to make JCIDE support NXP card.

Posted: Sun Jan 19, 2020 12:51 am
by kuafu

Re: how to make JCIDE support NXP card.

Posted: Sun Jan 19, 2020 12:54 am
by kuafu
priyankap wrote:
Fri Jan 17, 2020 11:20 am
I tried to follow the steps you mentioned to change converter to JCOP 3.0.1 and -i is set to 'False'. But the CAP file of java applet is still not getting uploaded. I am getting the below error:

Code: Select all

Connect successful.
Download Cap begin...
Download Cap error: Download cap file failed. Send: 80 E6 02 00 17 0A D1 56 00 01 32 0A 64 65 6D 9F 08 A0 00 00 00 03 00 00 00 00 00 00, Recv: 6A 88.
Install Applet begin...
Install Applet error: Install Applet failed. Send: 80 E6 0C 00 29 0A D1 56 00 01 32 0A 64 65 6D 9F 0B D1 56 00 01 32 0A 64 65 6D 9F 01 0B D1 56 00 01 32 0A 64 65 6D 9F 01 01 00 02 C9 00 00, Recv: 6A 88.
Can you try java card kit 2.2.2.

Re: how to make JCIDE support NXP card.

Posted: Mon Jan 20, 2020 4:13 am
by priyankap
Thank you for your reply.

I tried to select java card kit 2.2.2 , but still getting the same error.
Is it possible to make mistake in selecting any other properties?
I am attaching the screenshots my properties tab and the error of CAP upload.
My Java Card is NXP J2E081 JCOP v2.4.2 R3 80 KB (JavaCard 3.0.1 Classic) with GP 2.2.1.

Thank you,
Priyanka

Re: how to make JCIDE support NXP card.

Posted: Mon Jan 20, 2020 4:19 am
by priyankap
sorry. same post got sent twice. so deleted this one.

Re: how to make JCIDE support NXP card.

Posted: Mon Jan 20, 2020 11:26 am
by kuafu
priyankap wrote:
Mon Jan 20, 2020 4:19 am
sorry. same post got sent twice. so deleted this one.
I try to upload walt applet with jcop tool , it can upload ,but install fauled.
Then i creat a hello applet ,it can upload ,and install sucesssful.
Can you try this hello appet.If it work ,then it's no about the tool ,it's about the code.

Code: Select all

package com.test ;

import javacard.framework.*;

public class test extends Applet
{

	public static void install(byte[] bArray, short bOffset, byte bLength) 
	{
		new test().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
	}

	public void process(APDU apdu)
	{
		if (selectingApplet())
		{
			return;
		}

		byte[] buf = apdu.getBuffer();
		switch (buf[ISO7816.OFFSET_INS])
		{
		case (byte)0x00:
			break;
		default:
			ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
		}
	}

}