devnied / EMV-NFC-Paycard-Enrollment

A Java library used to read and extract data from NFC EMV credit cards (Android/PCSC).
Apache License 2.0
1.48k stars 593 forks source link

Library does not compile #32

Closed sk92129 closed 6 years ago

sk92129 commented 6 years ago

I pulled the latest, and tried to run the "mvn clean install".

The library does not build successfully. Is there a known workaround for this issue?

Caused by: java.lang.IllegalAccessError: class jdk.internal.reflect.ConstructorAccessorImpl loaded by org/powermock/core/classloader/MockClassLoader cannot access jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl

I am using Windows7 64 bit with Java 9. Java(TM) SE Runtime Environment (build 9+181) Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

I noticed that the parent pom specifies 1.6 java with the maven-compiler-plugin.
( Tried on mac 10.13.1 with java 9.0.1. Still got the same build issue).

devnied commented 6 years ago

You must built the library with the jdk 7 or 8.