I've used VsCode to create a Jar file from my Java Project and works perfectly in my pc.
I tried to use a laptop that had no Java whatsoever to run such Jar; so I just downloaded and installed the latest version of JRE(https://www.java.com/es/download/ie_manual.jsp) since it's the only thing required to run a .jar
But when I try to run the Jar in this separete laptop I get an error message that makes no sense, since I am creating a Jar with an old version of the JDK and executing it with the latest JRE it should work.
My version of JDK is this one: 11.0.12 (I get the same output with "java -version" and "javac -version")
My version of Jre in the other pc is: "1.8.0_321" which is supossed to be the latest version.
And the error i get is the following: Error due versions incompatibility
Has any one encountered this error? Both OS are Windows 10 and when googling for the specific error I just get solutions that say Java has backwards compatibility, to implement a .bat, download a JDK and work from there. But I don't understand why the latest JRE won't run an older version of JDK (which embeded has the JRE and compiler).