Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle build error , Unable to load gradle projects successfully #1555

Closed
rqw opened this issue Aug 2, 2024 · 2 comments
Closed

Gradle build error , Unable to load gradle projects successfully #1555

rqw opened this issue Aug 2, 2024 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@rqw
Copy link

rqw commented Aug 2, 2024

Extension Name: vscode-gradle
Extension Version:3.16.1
OS Version:Ubuntu 11.4.0-1ubuntu1~22.04
VSCode version:1.92.0

project jdk vesion 1.8

java.import.gradle.java.home set as /usr/local/openjdk8
but use /home/rqw/.vscode-server/extensions/redhat.java-1.33.0-linux-x64/jre/17.0.11-linux-x86_64

An error was encountered opening the project:


[info] [gradle-server] Gradle Server started, listening on 40647
[info] Gradle client connected to server
[info] Java Home: /home/rqw/.vscode-server/extensions/redhat.java-1.33.0-linux-x64/jre/17.0.11-linux-x86_64
[info] JVM Args: --add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country,-Duser.language=en,-Duser.variant
[info] Gradle User Home: /home/rqw/.gradle
[info] Gradle Version: 6.8.3
[error] FAILURE: Build failed with an exception.

* Where:
Initialization script '/tmp/33204498662e6d9ef8630fdd6da53f73bf02ec75ce3a59cb630665d8a773cf9c.gradle'

* What went wrong:
Could not compile initialization script '/tmp/33204498662e6d9ef8630fdd6da53f73bf02ec75ce3a59cb630665d8a773cf9c.gradle'.
> startup failed:
  General error during semantic analysis: Unsupported class file major version 61
  
  java.lang.IllegalArgumentException: Unsupported class file major version 61

@rqw rqw added the bug Something isn't working label Aug 2, 2024
@jdneo
Copy link
Member

jdneo commented Aug 2, 2024

Duplicated wih #1546

@jdneo jdneo closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2024
@jdneo jdneo added the duplicate This issue or pull request already exists label Aug 2, 2024
@jdneo
Copy link
Member

jdneo commented Aug 2, 2024

Please try the pre-release version 3.16.2024080209.

Let me know if the issue still exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants