gradle can't be run from /bin/gradle

Bug #1922496 reported by Nathan Jankowski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gradle (Ubuntu)
New
Undecided
Unassigned

Bug Description

Upon a fresh install of gradle, the executable installs to /usr/share/gradle/bin/gradle, and attempts to symlink to /bin, but the symlink is to the wrong directory. It symlinks to ../share/gradle/bin/gradle instead of /usr/share/gradle/bin/gradle , which in turn breaks gradle from running from the path. When running gradle by giving the full path, everything works as normal.

/bin/gradle: 23: cd: can't cd to /bin/../share/gradle/bin/..
Error: Could not find or load main class org.gradle.launcher.GradleMain
Caused by: java.lang.ClassNotFoundException: org.gradle.launcher.GradleMain

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gradle 4.4.1-10
ProcVersionSignature: Ubuntu 5.8.0-48.54~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 4 11:45:20 2021
InstallationDate: Installed on 2021-03-16 (18 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/usr/bin/zsh
SourcePackage: gradle
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Nathan Jankowski (natejank) wrote :
summary: - /bin/gradle is a broken symlink
+ Cannot run gradle from path
summary: - Cannot run gradle from path
+ gradle can't be run from /bin/gradle
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.