Public bug reported: Hi,
ant comes with /usr/bin/ant as a symlink to ../share/ant/bin/ant , thus pointing to /usr/share/ant/bin/ant But then, recent ubuntu versions such as Lubuntu come with /bin being a symlink to usr/bin . If /bin comes before /usr/bin in PATH, the shell finds ant at /bin/ant and calls it as /bin/ant, thus beeing unable to resolv the relative symlink: % /bin/ant /bin/ant: 1: cd: can't cd to /bin/../share/ant/bin/.. Error: Could not find or load main class org.apache.tools.ant.launch.Launcher Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher It's a shellscript that can be started, because the Linux kernel itself can deal with these nested symlinks, but the script itself tries to resolv it's own path in order to find it's library and fails then. Make it an absolute symlink or fix the shell script accordingly. regards ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: ant 1.10.7-1 ProcVersionSignature: Ubuntu 5.4.0-67.75-generic 5.4.94 Uname: Linux 5.4.0-67-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: 2.20.11-0ubuntu27.16 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: LXQt Date: Thu Apr 22 23:09:19 2021 InstallationDate: Installed on 2020-06-12 (314 days ago) InstallationMedia: Lubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) PackageArchitecture: all SourcePackage: ant UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: ant (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1925690 Title: relative symlink breaks search path To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ant/+bug/1925690/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs