"Everything is easy - once you know how.."
Java Runtime wrote:Exception in thread "main" java.lang.UnsupportedClassVersionError:
MathDemo2 has been compiled by a more recent version of the Java Runtime (class file version 69.0),
this version of the Java Runtime only recognizes class file versions up to 52.0
I did not climb to the top of the food chain to eat Java errors
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
"Everything is easy - once you know how.."
That is exactly what would happen. The problem is, that such a PATH error will fail silently. The OS will move to the next entry in the PATH until it finds a java.exe program (Windows® format) without telling you what is happening. You were lucky that it produced another error quickly, with an error message that whoever replied to your query recognised immediately.Stuart Lord wrote:. . . it would have read C:\Program Files\Java\jdk-25\bin\bin and not found a bin folder . . .
| With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |