You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Contact - Cogsonomy <co...@cogsonomy.fr> on 2022/07/27 11:53:22 UTC
Jean and java JRE
Hi all,
I'm working with Eclipse and Maven. I am using Jena (version 4.5) and my
version of the jre is 1.8.0_341. The version of my jdk is 1.8.0_831.
But, when i want to build my java program, I have this message :
"Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/jena/tdb2/TDB2Factory has been compiled by a more recent
version of the Java Runtime (class file version 55.0), this version of
the Java Runtime only recognizes class file versions up to 52.0"
Apparently, this means that my JRE is 1.8 and the JRE used to compile
TDB2F is 1.11. I can not update my JRE (it is not allow by Oracle).
So, how to do ? What is the solution ?
Many thanks in advance,
Best regards
Xavier
Re: Jean and java JRE
Posted by Steve Vestal <st...@adventiumlabs.com>.
If you install a recent version of Eclipse using Oomph (the default way
now), it should give you an option to select a version of OpenJDK. I
think it puts it in the .p2 repository. You may have to adjust some
preferences and properties (I am not a Maven maven), but you can bypass
the Oracle install of their JDK to get the Java version you want.
On 7/27/2022 6:53 AM, Contact - Cogsonomy wrote:
> Hi all,
>
> I'm working with Eclipse and Maven. I am using Jena (version 4.5) and
> my version of the jre is 1.8.0_341. The version of my jdk is 1.8.0_831.
>
> But, when i want to build my java program, I have this message :
>
> "Exception in thread "main" java.lang.UnsupportedClassVersionError:
> org/apache/jena/tdb2/TDB2Factory has been compiled by a more recent
> version of the Java Runtime (class file version 55.0), this version of
> the Java Runtime only recognizes class file versions up to 52.0"
>
> Apparently, this means that my JRE is 1.8 and the JRE used to compile
> TDB2F is 1.11. I can not update my JRE (it is not allow by Oracle).
>
> So, how to do ? What is the solution ?
>
> Many thanks in advance,
>
> Best regards
>
> Xavier
>