My current default version of Java is 7 (which, for now, can't be updated - I know it's reached EOL), but also have Java 8 installed.
However, I have some third party jars (all contained in a directory) that require Java 1.8. Each jar has an associated bash script to check relevant environment variables, and to construct the java command required to run the jar. Each bash script assumes that the command to invoke java is, unsurprisingly,
Is there a way for me to change the version of java that is executed when
java is invoked from 7 to 8 in this folder only?