Usually, when I a terminal session on an IBM Midrange box, I use a Java-based TN5250 emulator I designed and helped write (but which, alas, is not available to the public except as part of another application).
But occasionally, I need to use the open source TN5250J instead.
I'm in the final stages of migrating from Catalina on a 2017 iMac to Ventura on an M2 Mini. And I noticed two problems with TN5250J:
First, it doesn't show up in Launchpad.
And second, if I find the app, and try to launch it, I get
ERROR launching 'Tn5250j'
No suitable Java version found on your system! This program requires Java 1.6+ Make sure you install the required Java version.
I tried the supposed solution (counterintuitive as it is) at https://stackoverflow.com/q/52782711 but "no joy."
Any other ideas of how to fix this? TN5250J shouldn't be fussy about any remotely current JVM.
This gets worse: Eclipse also fails to launch. It comes back with a different message (and I think it's from some part ofEclipse itself):
Alert
Failed to create the Java Virtual Machine
To answer the question from "greg-449," a /usr/libexec/java_home --verbose
returns
1.8.0_121 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
1.7.0_09 (x86_64) "Oracle Corporation" - "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
And I will note that if anything runs under the Java 7 JVM, text rendering is seriously screwed up.
I'm wondering if I simply need to reinstall Java, given that these are x86 JVMs, running on M2 hardware.
/usr/libexec/java_home --verbose
to list all the Java installations the system knows about