[
https://issues.apache.org/jira/browse/SOLR-16685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697270#comment-17697270
]
Ishan Chattopadhyaya commented on SOLR-16685:
---------------------------------------------
Here's how it looks.
{code}
[ishan@192 solr] $ ./gradlew --version
Downloading gradle-wrapper.jar from
https://raw.githubusercontent.com/gradle/gradle/v7.6.0/gradle/wrapper/gradle-wrapper.jar
Generating gradle.properties
Downloading https://services.gradle.org/distributions/gradle-7.6-bin.zip
...........10%............20%...........30%............40%............50%...........60%............70%............80%...........90%............100%
Welcome to Gradle 7.6!
Here are the highlights of this release:
- Added support for Java 19.
- Introduced `--rerun` flag for individual task rerun.
- Improved dependency block for test suites to be strongly typed.
- Added a pluggable system for Java toolchains provisioning.
For more details see https://docs.gradle.org/7.6/release-notes.html
------------------------------------------------------------
Gradle 7.6
------------------------------------------------------------
Build time: 2022-11-25 13:35:10 UTC
Revision: daece9dbc5b79370cc8e4fd6fe4b2cd400e150a8
Kotlin: 1.7.10
Groovy: 3.0.13
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 17.0.6 (Red Hat, Inc. 17.0.6+10)
OS: Linux 6.1.14-200.fc37.x86_64 amd64
{code}
Now, the surprising part is without a single change, {{./gradlew compileJava}}
is suddenly working now. Same JDK17. I think restarting did the trick? Very
weird, because javac, java, and $JAVA_HOME were all pointing to JDK 17 at the
time of the problem.
I'll try to repro on a fresh install of the OS, which I'll undertake later this
week on another system. I'll close this issue for now.
> Gradle erroring out with JDK17
> ------------------------------
>
> Key: SOLR-16685
> URL: https://issues.apache.org/jira/browse/SOLR-16685
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Ishan Chattopadhyaya
> Priority: Major
>
> On a fresh install of Fedora 37, Gradle is erroring out.
> {code}
> [ishan@fedora solr] $ ./gradlew compile
> Exception in thread "main" java.lang.IllegalArgumentException: error: release
> version 11 not supported
> at
> jdk.compiler/com.sun.tools.javac.main.Arguments.reportDiag(Arguments.java:889)
> at
> jdk.compiler/com.sun.tools.javac.main.Arguments.handleReleaseOptions(Arguments.java:311)
> at
> jdk.compiler/com.sun.tools.javac.main.Arguments.processArgs(Arguments.java:350)
> at
> jdk.compiler/com.sun.tools.javac.main.Arguments.init(Arguments.java:246)
> at
> jdk.compiler/com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:191)
> at
> jdk.compiler/com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:119)
> at jdk.compiler/com.sun.tools.javac.launcher.Main.compile(Main.java:381)
> at jdk.compiler/com.sun.tools.javac.launcher.Main.run(Main.java:189)
> at jdk.compiler/com.sun.tools.javac.launcher.Main.main(Main.java:132)
> ERROR: Something went wrong. Make sure you're using Java 11 - 19.
> [ishan@fedora solr] $ java -version
> openjdk version "17.0.6" 2023-01-17
> OpenJDK Runtime Environment (Red_Hat-17.0.6.0.10-1.fc37) (build 17.0.6+10)
> OpenJDK 64-Bit Server VM (Red_Hat-17.0.6.0.10-1.fc37) (build 17.0.6+10, mixed
> mode, sharing)
> [ishan@fedora solr] $ echo $JAVA_HOME
> /usr/lib/jvm/java-17-openjdk-17.0.6.0.10-1.fc37.x86_64
> {code}
> Anyone has a clue please, before I start looking?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]