You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Steve Vestal <st...@adventiumlabs.com> on 2022/05/15 10:56:23 UTC

Java versions?

The download page says Jena requires Java 11.  Openllet for Jena 2.6 
also just says Java 11 required.  Does that mean Java 11 or greater?  Is 
anyone using the latest Jena and Openllet with Java 17?  The Eclipse 
installer defaults to Java 14 for 2022-03, with higher versions 
available.  Any words of wisdom about Java versions will be appreciated.


Re: Java versions?

Posted by Andy Seaborne <an...@apache.org>.
11 and later.  The project policy is "last two Java versions" and with 
the new (by Jena timescales!) Java release cycles, we interpret that as 
2 LTS.

There are Jenkins CI builds with 11(LTS), 17(LTS), 19(early adopter Java 
latest).

Here are the Jenkins jobs for Jena:

https://ci-builds.apache.org/job/Jena/

The build is done Java11, well "would be" because there is a bug in 
Java11 javadoc production so the release build is done with java17 cross 
compiled to java11 byte code. But there are pure java11 builds done to 
check no runtime library calls of later versions have crept in.

The jenkins java11 build is java11.
The github actions are java11 (includes a MacOS devbuild).

https://github.com/apache/jena/actions

There is a Java19 test failure on Jenkins. It is in jena-iri and java 
changed; java-iri hasn't. It worked in February, it doesn't now.

The test is artificial (1000+ character IRI with a path of all U+13107, 
so not even in the basic plane of unicode).  It wouldn't be the first 
time a java change has triggered something then got fixed. Java19 hasn't 
been released yet (due 2022/09/20).


I'd like to reinforce Andrew's advice - test with multiple version, at 
least the LTS your project supports (in my experience, Java17 is 
noticeable faster that Java11).

If you have a choice in production - latest LTS, currently Java17.


What's more, Jena makes development releases available for testing.

Maven repo: 
https://repository.apache.org/content/groups/snapshots/org/apache/jena/

(these are not formal releases)

     Andy

On 15/05/2022 13:52, Andrii Berezovskyi wrote:
> Steve,
> 
> JRE for the Eclipse IDE has very little to do with the JDK you use for development (the IDE JRE gets used for Maven deps resolution though, IIRC). You can run Eclipse with JDK 17 LTS as a JRE, while using JDK 11 LTS for your projects (see under Preferences > Java > Installed JREs). In fact, this is exactly what I do when I am not using IntelliJ.

Ditto.

> 
> Regarding the required JDK version for Jena, I used it with JDK 11, 17, and 18 without any problems so far. I would not recommend using JDK 12-16 as they are no longer supported (unless you are using Zulu 15 MTS, but that's quite niche).
> 
> I would also suggest you build and test your project using multiple versions of the JDK, e.g., we do it with JDK 11, 17, 18, and 19-ea [1].
> 
> Cheers,
> Andrew
> 
> [1] https://github.com/oslc-op/refimpl/blob/master/.github/workflows/maven.yml#L19-L26
> 
> On 2022-05-15, 12:56, "Steve Vestal" <st...@adventiumlabs.com> wrote:
> 
>      The download page says Jena requires Java 11.  Openllet for Jena 2.6
>      also just says Java 11 required.  Does that mean Java 11 or greater?  Is
>      anyone using the latest Jena and Openllet with Java 17?  The Eclipse
>      installer defaults to Java 14 for 2022-03, with higher versions
>      available.  Any words of wisdom about Java versions will be appreciated.
> 
> 

Re: Java versions?

Posted by Andrii Berezovskyi <an...@kth.se>.
Steve,

JRE for the Eclipse IDE has very little to do with the JDK you use for development (the IDE JRE gets used for Maven deps resolution though, IIRC). You can run Eclipse with JDK 17 LTS as a JRE, while using JDK 11 LTS for your projects (see under Preferences > Java > Installed JREs). In fact, this is exactly what I do when I am not using IntelliJ.

Regarding the required JDK version for Jena, I used it with JDK 11, 17, and 18 without any problems so far. I would not recommend using JDK 12-16 as they are no longer supported (unless you are using Zulu 15 MTS, but that's quite niche).

I would also suggest you build and test your project using multiple versions of the JDK, e.g., we do it with JDK 11, 17, 18, and 19-ea [1].

Cheers,
Andrew

[1] https://github.com/oslc-op/refimpl/blob/master/.github/workflows/maven.yml#L19-L26 

On 2022-05-15, 12:56, "Steve Vestal" <st...@adventiumlabs.com> wrote:

    The download page says Jena requires Java 11.  Openllet for Jena 2.6 
    also just says Java 11 required.  Does that mean Java 11 or greater?  Is 
    anyone using the latest Jena and Openllet with Java 17?  The Eclipse 
    installer defaults to Java 14 for 2022-03, with higher versions 
    available.  Any words of wisdom about Java versions will be appreciated.