Jmrtd build error in JCIDE
-
- Posts: 7
- Joined: Fri Oct 28, 2016 2:59 pm
- Points :66
- Contact:
Jmrtd build error in JCIDE
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
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
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3053
- Contact:
Re: Jmrtd build error in JCIDE
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.
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
-
- Posts: 7
- Joined: Fri Oct 28, 2016 2:59 pm
- Points :66
- Contact:
Re: Jmrtd build error in JCIDE
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?
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?
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3053
- Contact:
-
- Posts: 7
- Joined: Fri Oct 28, 2016 2:59 pm
- Points :66
- Contact:
Re: Jmrtd build error in JCIDE
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...
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3053
- Contact:
Who is online
Users browsing this forum: No registered users and 27 guests