Sample Header Ad - 728x90

Installing Java on FreeBSD: `sudo pkg install openjdk11-11.0.4+11.1` fails to find package despite being listed in the "FreeBSD Ports Search" page

1 vote
1 answer
1052 views
On the [*FreeBSD Ports Search*](https://www.freebsd.org/ports/index.html) page, I see results listing an item openjdk11-11.0.4+11.1 . When I try to install that: $ sudo pkg install openjdk11-11.0.4+11.1 …I get error saying the package could not be found: >Updating FreeBSD repository catalogue... > >FreeBSD repository is up to date. > >All repositories are up to date. > >pkg: No packages available to install matching 'openjdk11-11.0.4+11.1' have been found in the repositories ➥ What am I missing here? What is the proper way to install Java/OpenJDK 11 or 12 on FreeBSD 12?
Asked by Basil Bourque (1671 rep)
Jul 23, 2019, 09:11 PM
Last activity: Jul 28, 2019, 06:52 AM