What is the difference between the Oracle version and OpenJDK. I'm pasting the terminal command and the error message I get here, hoping for advice.
![unable to locate package openjdk 8 jdk unable to locate package openjdk 8 jdk](https://docs.microsoft.com/ko-kr/xamarin/android/get-started/installation/openjdk-images/vs.png)
Again, very new to Linux, been on my first Linux distro ever for less than an hour here at this point.
![unable to locate package openjdk 8 jdk unable to locate package openjdk 8 jdk](https://i.stack.imgur.com/J2oiK.png)
UNABLE TO LOCATE PACKAGE OPENJDK 8 JDK INSTALL
sudo apt-get install openjdk-8-jdkĮ: Unable to locate package openjdk-8-jdkĪny help would be appreciated. In the meantime, I'm just gonna use the Oracle package. I installed OpenJDK 7, it came with Maven and just installed before I realized I was getting a two-for-one deal. Now I have JDK 7, and Eclipse, and Maven, and they're all working, but I'm stuck on JDK 7 rather than 8. I saw that there's a link below, I intend to check it out in the morning, it's 2am and I'm tired right now. UPDATE: installation without root privileges below Any other advice for this new issue would be appreciated, otherwise I will definitely be checking out that link first thing in the morning. Install your preferred version of jdk (versions from java-6 to java-9 available): sudo apt-get install oracle-java8-installer Further, use Oracle JDK for development, just to avoid (very sporadic) compatibility issues (i've tried many years ago, it's surely better now).Īdd the webupd8 repo to your system: sudo add-apt-repository ppa:webupd8team/java I advise you to not install packages manually on ubuntu system if there is already a (semi-official) repository able to solve your problem.
![unable to locate package openjdk 8 jdk unable to locate package openjdk 8 jdk](https://phoenixnap.com/kb/wp-content/uploads/2021/04/1_how-to-install-java-centos-8-768x384.png)
You can also install multiple version of jdk, mixing openjdk and oracle versions. Sudo update-java-alternatives -set java-7-oracle Then you can use the command update-java-alternatives to switch between installed version: # list available jdk #Upgrade openjdk 7 to 8 ubuntu install#