@falken That said, do you know how i'd upgrade `/usr/bin/java`? As I say, i downloaded it from java.com so i'd assume that'd be latest wouldn't it?
@tdp_org linux? there should be an openjdk package in your disto's list. Mac? dunno. Win? Get one from Chocolatey or similar.
Don't use Oracle's downloads. If they find you they'll set the lawyer's on you
@tdp_org @falken@qoto.org https://www.azul.com/downloads/?package=jdk#zulu is a good source of openjdk for a wide range of platforms - avoiding the Oracle sales droids.
@tdp_org Java class file version of 52 corresponds to Java 8, which is ancient. Looks like you are trying to run code compiled for Java 11.
I doubt you actually downloaded Java 8, so it might be more of a $PATH problem.
Its also likely that your distro has a version of Java greater than 11 in its package manager too, I try that first.
@intrbiz It's very odd. I downloaded it from Java.com and that gave me ver 8 (macos arm).
There isn't an apple provided Java these days.
The brew version of Java was new enough but took some wrangling to make work.
The app bombed out after all that so I gave up.
@tdp_org baffling, I have no idea why java.com only provides a 10 year old release.
Where as the oracle site gives you an upto date release:
https://www.oracle.com/uk/java/technologies/downloads/#jdk20-mac
Got to love Oracle and there approach to communities.
@falken Thanks 🙌🏻 - but my point is that the message doesn't tell me any of that. I installed java from java.com which i presume would be the latest version. Turns out not to be, or that maybe it's something different than that - JRE, JDK, Java - i don't really know what they do specifically. The ecosystem assumes *loads* of knowledge. I just find java super frustrating as a user, not saying anything else is perfect by any means but this is the worst IMO.