Apparently, you use JAR from
Java 8 install -- it's higher than Java 11 in the second command output
So, I suggest you go and edit the %PATH% environment variable (this may break some other applications that rely on your machine on Java 8 by default), OR provide a full absolute path to JAR from v.11 location for a quick check
If you plan to practice further with Java 11 on this machine, maybe updating %PATH% is a better idea...