I already have installed in my linux Ubuntu the java 8 (Update 121), but I need to install the java 7 RE for a specific software that I need to use. I want the java 7 only to use with this tool, and I do not want to make any modification on my default java 8. How to do that? Can I install java 7 with no issue for my 8?
update-alternatives --config java There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Nothing to configure.
Advertisement
Answer
You do not need to install Java 7. You can download java 7 zip package and unzip it to a location. Create an environment variable/ Sdk Config in your tool pointing to the java 7. I am not sure which tool you are referring to !
Eg : In intellij you can create a new sdk and point it to your java 7 jdk location and use it. In eclipse you can create a Java 7 sdk environment from java build path and use it.