B4J Question jpi4j2 - Error in building

ggranata

Member
Hi,
I've update my app, removing old Pi4J library and using Pi4j2
Library and it's dependencies are in 'Additional Libraries' folder.
When I'm compiling app, I get this error:

"
B4J Version: 9.30
Parsing code. (0.09s)
Java Version: 8
Building folders structure. (0.07s)
Compiling code. (0.16s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
javac 1.8.0_231
src\b4j\example\main.java:57: error: cannot access Pi4JWrapper
public static anywheresoftware.b4j.objects.Pi4JWrapper _pi4j = null;
^
bad class file: C:\Users\...\Desktop\Libraries\jpi4j2.jar(anywheresoftware/b4j/objects/Pi4JWrapper.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
"
How to compile my project?
Thanks.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…