Our express partner will perform scheduled system maintenance from 19th Jan to 3rd Feb, so during this time, all the orders in our webshop will be handled from 4th Feb.
Sorry for any inconvenience caused.

Jmrtd build error in JCIDE

JCIDE related questions and answers.

Moderators: product, kuafu

k0v4csistv4n
Posts: 7
Joined: Fri Oct 28, 2016 2:59 pm
Points :66
Contact:

Jmrtd build error in JCIDE

Post by k0v4csistv4n » Fri Nov 18, 2016 3:24 pm

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

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3037
Contact:

Re: Jmrtd build error in JCIDE

Post by UNKNwYSHSA » Sun Nov 20, 2016 10:21 pm

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.
sense and simplicity

k0v4csistv4n
Posts: 7
Joined: Fri Oct 28, 2016 2:59 pm
Points :66
Contact:

Re: Jmrtd build error in JCIDE

Post by k0v4csistv4n » Tue Nov 22, 2016 2:26 pm

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?

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3037
Contact:

Re: Jmrtd build error in JCIDE

Post by UNKNwYSHSA » Wed Nov 23, 2016 11:05 pm

This problem resolved?
sense and simplicity

k0v4csistv4n
Posts: 7
Joined: Fri Oct 28, 2016 2:59 pm
Points :66
Contact:

Re: Jmrtd build error in JCIDE

Post by k0v4csistv4n » Thu Nov 24, 2016 6:12 am

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

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3037
Contact:

Re: Jmrtd build error in JCIDE

Post by UNKNwYSHSA » Thu Nov 24, 2016 10:11 pm

OK.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer