![]() ![]() Sudo add-apt-repository ppa:webupd8team/java We can install it by apt-get but before we need to execute next commands: sudo apt-get install python-software-properties Oracle JDK is an official JDK but, now, Oracle doesn't support it like default for installation in Ubuntu. For Java Development Kit (JDK), we execute: sudo apt-get install openjdk-7-jdk Installing OpenJDK 7 (optionally) sudo apt-get install openjdk-7-jreĪfter execution Java Runtime Environment (JRE) will be installed. When we want to install Java Development Kit (JDK), which is needed for compilling Java-app (for example, Apache Ant, Apache Maven, Eclipse and IntelliJ IDEA) we need to do: sudo apt-get install default-jdk ![]() ![]() So, we need to to: sudo apt-get install default-jreĪs result, Java Runtime Environment (JRE) will be installed. If after execution we have something like: "The program java can be found in the following packages", it means that Java isn't installed. Installing Java whereby apt-get is easy: sudo apt-get update OpenJDK 7 is installed as default in Ubuntu 12.10 and later. Installing JRE/JDK in default configuration I think downgrading can be a good option but I am not able to do any of them. N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt//' as it has an invalid filename extensionĮ: Package 'openjdk-7-jdk' has no installation candidate This may mean that the package is missing, has been obsoleted, or Package openjdk-7-jdk is not available, but is referred to by another package. It gives following error while trying to install JDK 7. There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaīut it is not installing as well. I tried to install JDK7 and use it as default root:floyd~# update-alternatives -config java I am trying to deploy a war file which requires JDK7. I accidentally upgraded the whole system in ubuntu 14.04. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |