I have downloaded jdk binaries (jdk.tar.gz) of different JDK versions, say 8u92, 8u121 and 8u131 in a directory.
I want to run a Java program in each of these java versions and know the output. Is there a way to do this?
Something like extract jdk.tar.gz, put the class file somewhere in the jdk and execute?
Thanks ahead.
pathToJdk/bin/java pathToYourClassFile