As the title asks, I need both, both Oracle Java 7 and Oracle Java 8. I've installed Oracle 8 (through webupd8), but software I want to run (Gephi) will only work on 7. Please advise.


1 Answer 1


There should not be much of a problem installing multiple versions of the JDK. Only one will be first on the path but you can explicitly run the other as needed by just using its full path name. Depending on how you are running it you may have different settings associated with each program. For example in Netbeans each project has an associated JDK, so when I run some projects it runs with JDK 7 and others run with JDK 8. You could also embed different JDK dirs in startup scripts or .desktop files for each program.

Gephi can be run on a system where JDK 8 is first on the path with the command:

gephi --jdkhome /usr/lib/jvm/java-7-openjdk-i386/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .