Giter Site home page Giter Site logo

Comments (5)

RaiMan avatar RaiMan commented on May 21, 2024

Sorry, I do not support 1.1.3 anymore.

But yes: you have to build with at least Java 9 (recommended Java 11).
... but the artefacts run on Java 8+

from sikulix1.

RaiMan avatar RaiMan commented on May 21, 2024

BTW: In the java source you can find:

/**
 * This class only compiles with Java 9+
 * If you want to compile with Java 8, you have to hide this classfile<br>
 * (is possible, because it is accessed in Java 9 only using reflection)
 */

from sikulix1.

paul-hammant avatar paul-hammant commented on May 21, 2024

There's a couple of ways that the POM can explicitly note JDK 9+. Here's one:

<build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.8.0</version>
                    <configuration>
                        <source>1.9</source>
                        <target>1.9</target>
                    </configuration>
                </plugin>

from sikulix1.

RaiMan avatar RaiMan commented on May 21, 2024

@paul-hammant
Thanks for the hint, but that is not what is needed.
Both source and target have to be Java 8

What is needed is an option to exclude the mentioned classfile from compilation, when the build runs on Java 8. I did not find such an option until now.

so only hiding the classfile in this case IMHO helps.

from sikulix1.

paul-hammant avatar paul-hammant commented on May 21, 2024

Towards tactical exclusion: One or both of Joe Walnes' QDox or XStream does stages of JDK compilation into the same jar, in order to take advantage of JDK-specific classes in JDK 5, 6, 7+. Well I say Joe, but there were multiple contributors towards that. Specifically, multiple runs through with Javac, then a single zipping into a Jar that's adaptive between those JDKs. That was 10 years ago, and the need for that homogenization may be gone now.

from sikulix1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.