[ 
https://issues.apache.org/jira/browse/SOLR-16431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17609027#comment-17609027
 ] 

Shawn Heisey commented on SOLR-16431:
-------------------------------------

After a little bit of thought and staring at it, I realized it was complaining 
about gradle paths, not Solr paths.  Looks like this might actually be gradle, 
it might not be compatible with Java 19.

[https://github.com/gradle/gradle/issues/20372]

When I re-ran the build with --info, it didn't show me anything that looked 
relevant, but when I ran it with --stacktrace, the last "caused by" exception 
in the output matches that gradle bug:
{code:java}
Caused by: java.lang.IllegalArgumentException: Unsupported class file major 
version 63{code}

> Can't build Solr with OpenJDK 19
> --------------------------------
>
>                 Key: SOLR-16431
>                 URL: https://issues.apache.org/jira/browse/SOLR-16431
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Build
>    Affects Versions: 9.1
>            Reporter: Shawn Heisey
>            Priority: Minor
>
> Build fails with JDK 19 on branch_9x.  All 3 of these environments fail:
>  
> Ubuntu Server 22.04, with OpenJDK 19:
> {code:java}
> JAVA_HOME="/storage0/jdk-19" ./gradlew clean assemble{code}
>  
>  
> Windows 10 in command prompt, OpenJDK 19, Strawberry Perl:
>  
> {code:java}
> SET JAVA_HOME="C:\jdk-19"
> gradlew clean assemble
> {code}
>  
> Windows 10 in Git Bash, OpenJDK 19, perl included with Git Bash:
>  
> {code:java}
> JAVA_HOME="/c/jdk-19" ./gradlew clean assemble{code}
>  
>  
> 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 the JVMs are Oracle, on Ubuntu it is all OpenJDK.
> On Ubuntu this is the build output.  Similar in both Windows environments:
>  
> {code:java}
> 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
> {code}
>  
> I've got no idea what might be wrong here.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to