Page 1 of 1

Jmrtd build error in JCIDE

Posted: Fri Nov 18, 2016 3:24 pm
by k0v4csistv4n
Hi everybody,

I try to Build the epassport applet of jmrtd java applet in the JCIDE, (2.0.1.50) but I got this error message:

error: unsupported interface field sos.passportapplet.EvilInterface.ACCESS_CODE. Interface fields may only be initialized to primitive compile-time constant values.
In the source code I found this line:
static final byte[] ACCESS_CODE = {(byte) 0xAC, (byte) 0xCE, (byte) 0x55};

This is the epassport applet in the jmrtd pack. From the jmrtd-code-1645-trunk package (.zip)

Anybody can help me how I can build the epassport jcard applet?

Thanks!

Istvan

Re: Jmrtd build error in JCIDE

Posted: Sun Nov 20, 2016 10:21 pm
by UNKNwYSHSA
This static field is not used in this project, you can comment this code line.
I uses the code from:
http://jaist.dl.sourceforge.net/project ... et-src.zip
And use JC version 3.0.4, i have built this project successfully.

Re: Jmrtd build error in JCIDE

Posted: Tue Nov 22, 2016 2:26 pm
by k0v4csistv4n
Hi, Thanks the info.

I was removed the EvilApplet things and now no more compilation errors.

But I have another problem: The epassport applet crashed when I try to Extended auth.

The program call a CardRuntimeException e error procedure when was called the sig.init(kA, Signature.MODE_SIGN); command in the
crypto.initMac(); process.

I try to compile and run this epassport applet in a eclipse + Java Card 3.0.5 environment, but I didn't use the JcopSimulator with openscd scsh interface or pyApdutool.

The JCIDE is very nice application and I can use the Javacos card simulation with pyApdutool & openscd test environment for testing the applet, but the epass applet didn't work in there.

Any idea how to solve this problem here? Any other epass (BAC+EAC) solution which is working well with JCIDE?

Re: Jmrtd build error in JCIDE

Posted: Wed Nov 23, 2016 11:05 pm
by UNKNwYSHSA
This problem resolved?

Re: Jmrtd build error in JCIDE

Posted: Thu Nov 24, 2016 6:12 am
by k0v4csistv4n
UNKNwYSHSA wrote:This problem resolved?


Yes. It was my mistake. I modified the code because the GEt CHALLENGE was failure. But now I fix this line.
Tha problem wasn1t in the code , the problem is the card is not personalized yet...

Re: Jmrtd build error in JCIDE

Posted: Thu Nov 24, 2016 10:11 pm
by UNKNwYSHSA
OK.