Whether you want a portable JDK or you just don’t want to further muck up your Windows %PATH%, you can get a older or newer Java on your Windows machine without affecting other versions.
I found a link explaining how to do it here: https://www.whitebyte.info/programming/java/how-to-install-a-portable-jdk-in-windows-without-admin-rights, but in case it ‘goes away’, here are the steps:
So far this works for Java 1.7, should work with Java 1.8.
- Make sure you have 7-zip on your Windows. Download the installer from Oracle
- Open the executable installer with 7-zip and extract the single
- Extract the files from the
tools.zipto where you want your JDK.
- From a Windows command prompt in the folder where you extract the
tools.zipfiles, run the following:
for /R %f in (.\*.pack) do @"%cd%\bin\unpack200" -r -v -l "" "%f" "%~pf%~nf.jar"