Sample Header Ad - 728x90

Using FreeBSD Ports & Packages, Installing Tomcat on FreeBSD 12 installs Java 8 rather than my already-installed Java 12

0 votes
2 answers
758 views
On FreeBSD 12, I already installed Java 12 successfully using: sudo pkg install openjdk12 And I edited etc/fstab as directed by the text emitted by that installer. Then I set the PATH to include the Java bin folder by editing my .zshrc with the line path+=/usr/local/openjdk12/bin. I verified that java --version works. Then I go to install Apache Tomcat 9. I checked with Ports to see there is an entry for the latest version , Tomcat 9.0.22. So I run: sudo pkg install tomcat9 I quickly notice this output during the installation: >[2/9] Fetching openjdk8-8.212.4.1.txz: 100% 80 MiB 83.4MB/s 00:01 Whoa, hold up there. I did not want the old OpenJDK 8 installed. I want Tomcat to be using that OpenJDK 12 I installed. ➥ How can I avoid installing OpenJDK 8, and instead direct the installer (if relevant) and Tomcat itself to use my OpenJDK 12?
Asked by Basil Bourque (1671 rep)
Jul 25, 2019, 07:51 PM
Last activity: Jul 31, 2019, 11:33 PM