Install the dependencies: sudo apt install -fĪfter installing the dependencies, try to install again (Go to step 2). If you have missing dependencies, and error will be shown. However, I had to make some changes in order to make it work on Ubuntu 19.04. ![]() Sudo apt install openjdk-8-jdk openjdk-8-jre Use this new PPA for Oracle Java 11 and 12 (not OpenJDK). If you want to install using PPA, add openjdk-r ppa and install: sudo add-apt-repository ppa:openjdk-r/ppa The PPA your added has been discontinued due to licensing changes. apt-cache search openjdk-8 grep openjdk-8. In your terminal, use the following command. The first and most recommended option is to install OpenJDK using the default Ubuntu 22.04 repository. ![]() Install dependencies: sudo apt install -f Install OpenJDK 8 APT Method with Ubuntu. ![]() While PPA is the preferred method to install JDK 8 in order to get timely updates and fixes, but if you still want to install without PPA, you can download and install JDK 8 from Ubuntu's pool of Universe packages. How to install Java JDK8 in Ubuntu 16.04 sudo apt update sudo apt-get install default-jdk cd /Downloads tar zxvf jdk-8u181-linux-圆4.
0 Comments
Leave a Reply. |