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

Issue with running on Linux (see description) #29210

Closed
mdziczkowski opened this issue May 18, 2024 · 2 comments
Closed

Issue with running on Linux (see description) #29210

mdziczkowski opened this issue May 18, 2024 · 2 comments
Labels
a:bug closed:invalid Not applicable to Gradle or EOL version in:invoking-gradle Running Executing

Comments

@mdziczkowski
Copy link

mdziczkowski commented May 18, 2024

Current Behavior

When I attempt to usr gradle after fresh install, independantly if I run it with or without parameters, I recieve following output:

/bin/gradle: 23: cd: can't cd to /bin/..share/gradle/bin..

[Trunchated Java informations]

Error: Could not find or load main class org.gradle.launcher.GradleMain

Caused by: java.lang.ClassNotFoundException: org.gradle.launcher.GradleMain

Expected Behavior

Normal functioning

Context (optional)

Installed from Debian repository

Steps to Reproduce

  1. Install a fresh gradle and try to run
  2. See the output

Gradle version

4.4.1-18

Build scan URL (optional)

No response

Your Environment (optional)

Linux: Debian (bookworm)

Java: OpenJDK (+ JRE)
Java version: 17.0.11+9-Debian-1deb12u1

@ljacomet ljacomet added in:invoking-gradle Running Executing closed:invalid Not applicable to Gradle or EOL version labels May 21, 2024
@ljacomet
Copy link
Member

There are no Gradle version 4.4.1-18 so this looks like a Debian build of Gradle. Unfortunately, we cannot support those.
If you observe the same with a recent Gradle version, please open a new issue.

Note that a fix for this issue has recently been contributed:

That fix will be available with Gradle 8.9 and later versions.

Workaround: manually patch the script

@ljacomet ljacomet closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
@mdziczkowski
Copy link
Author

Hello. I had given the gradle version with was downloaded from Debian repository (as it was given in the "Context" section of the issue post).

It seem that gradle was not updated in Debian repository since long ago.

Please contact the repository maintainer to update it to the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug closed:invalid Not applicable to Gradle or EOL version in:invoking-gradle Running Executing
Projects
None yet
Development

No branches or pull requests

2 participants