command 'jar' is missing

Bug #921831 reported by Moses Moore
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

the apt-* tools thinks the command 'jar' can be found in the openjdk-7-jdk package...

moses@deunan:~$ jar
The program 'jar' can be found in the following packages:
 * openjdk-6-jdk
 * fastjar
 * gcj-4.4-jdk
 * gcj-4.6-jdk
 * gcj-4.5-jdk
 * openjdk-7-jdk
Try: sudo apt-get install <selected package>

... but it does not get added to the normal $PATH when installed.

moses@deunan:~$ sudo apt-get install openjdk-7-jdk
openjdk-7-jdk is already the newest version.
moses@deunan:~$ which jar || echo "** not found"
** not found
moses@deunan:~$ dpkg -L openjdk-7-jdk |grep /jar$
/usr/lib/jvm/java-7-openjdk-i386/bin/jar

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: openjdk-7-jdk 7~b147-2.0-0ubuntu0.11.10.1
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic-pae 3.0.13
Uname: Linux 3.0.0-15-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Wed Jan 25 16:16:16 2012
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: openjdk-7
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (103 days ago)

Revision history for this message
Moses Moore (moses-mozai) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openjdk-7 (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

what does this show?

$ update-alternatives --list jar

did you mess around with manual symlinks yourself?

Changed in openjdk-7 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openjdk-7 (Ubuntu) because there has been no activity for 60 days.]

Changed in openjdk-7 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Moses Moore (moses-mozai) wrote :

(didn't see the request for more information, but did see the expiry notice. weird.)

"did you mess around with manual symlinks yourself?"
After I attempted to fix the problem with multiple installs of the packages suggested, I made a symlinks in /usr/local/bin/. I should hope that making a symlink in /usr/local/bin/ would not demolish the /etc/alternatives/ ecosystem.

Upgraded to 12.10 since this bug was filed. I had four alternatives for '/usr/bin/jar' after upgrading to 12.10.
Wiped them all out, removed the /usr/local/bin/ symlink. Reinstalled package 'openjdk-7-jdk' and dependencies (not recommendations nor suggestions).

$ update-alternatives --list jar
/usr/lib/jvm/java-7-openjdk-i386/bin/jar

Please mark this issue as obsolete/ already fixed.

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.