I'd like to find what package is installed on Ubuntu 14.04 (server) that gives access to the javac command. The RHEL line of distros has yum provides for this, but there doesn't seem to be anything similar for the Debian family.
This AskUbuntu question suggests using dpkg -S and apt-file, but neither of these work:
$ sudo dpkg -S `which javac`
dpkg-query: no path found matching pattern /usr/bin/javac
apt-file search appears to work at first:
$ apt-file search javac
javacc: /usr/bin/javacc
Except that apt-cache policy shows that this package isn't even installed, so it's obviously not the package that provides javac.
$ apt-cache policy javacc
javacc:
Installed: (none)
Candidate: 5.0-5
How can I find out what package provides the javac command?