J jkhazraji Active Member Licensed User Longtime User May 28, 2017 #1 I compiled a library in Eclipse and exported it to b4a . I ensured no error in Eclipse code and generated the jar and xml files. but as I used it and ran the project on emulator I got the following error: PARSE ERROR: unsupported class file version 52.0 ...while parsing jbc/jbc.class 1 error; aborting I have read that it is because of JDK (1.8 vs 1.7) incompatibility. I wonder what to do to correct this error What could I have missed? Edit: I also ensured that it is running as a Java Application inside Eclipse IDE with some modifications
I compiled a library in Eclipse and exported it to b4a . I ensured no error in Eclipse code and generated the jar and xml files. but as I used it and ran the project on emulator I got the following error: PARSE ERROR: unsupported class file version 52.0 ...while parsing jbc/jbc.class 1 error; aborting I have read that it is because of JDK (1.8 vs 1.7) incompatibility. I wonder what to do to correct this error What could I have missed? Edit: I also ensured that it is running as a Java Application inside Eclipse IDE with some modifications
Erel B4X founder Staff member Licensed User Longtime User May 29, 2017 #2 You need to set the compiler compliance level to Java 7 (1.7) or 6. It is in the Eclipse project settings.
You need to set the compiler compliance level to Java 7 (1.7) or 6. It is in the Eclipse project settings.