Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16431

Can't build Solr with OpenJDK 19

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 9.1
    • 9.2
    • Build
    • None

    Description

      Build fails with JDK 19 on branch_9x.  All 3 of these environments fail:

       

      Ubuntu Server 22.04, with OpenJDK 19:

      JAVA_HOME="/storage0/jdk-19" ./gradlew clean assemble

       

      Windows 10 in command prompt, OpenJDK 19, Strawberry Perl:

      SET JAVA_HOME="C:\jdk-19"
      gradlew clean assemble
      

       

      Windows 10 in Git Bash, OpenJDK 19, perl included with Git Bash:

      JAVA_HOME="/c/jdk-19" ./gradlew clean assemble

       

      All three environments work with JDK 17 and JDK 11 when setting JAVA_HOME to override the default JDK version on the PATH.  On Windows the version 11 and 17 JVMs are Oracle, on Ubuntu it is all OpenJDK.

      On Ubuntu this is the build output.  Similar in both Windows environments:

      elyograg@smeagol:~/git/solr$ JAVA_HOME="/storage0/jdk-19" ./gradlew clean assemble
      Starting a Gradle Daemon (subsequent builds will be faster)
      FAILURE: Build failed with an exception.
      * What went wrong:
      java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to create Jar file /home/elyograg/.gradle/caches/jars-9/9a0fa89179f2d49af76970a47c9cdf88/buildSrc.jar.
      > org.gradle.api.GradleException: Failed to create Jar file /home/elyograg/.gradle/caches/jars-9/9a0fa89179f2d49af76970a47c9cdf88/buildSrc.jar.
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      * Get more help at https://help.gradle.org
      BUILD FAILED in 20s
      2 actionable tasks: 2 executed
      

       

      Edit:  Looks like gradle doesn't yet support Java 19.

      Attachments

        Issue Links

          Activity

            People

              elyograg Shawn Heisey
              elyograg Shawn Heisey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: