Re: Mac OS Java Errors


Eric
 

depending what version of PCGen you're trying to run:


Prerequisites:

Java 11 aka Java 55 aka 18.09 or 18.10. (Including OpenJDK 11 variants)

PCGEN 6.08.00 RC2 is not compatible with Java 10 (or earlier) and it is NOT SUPPORTED. To get the latest version of Java, go to AdoptOpenJDK. PCGen has been tested with OpenJDK and AdoptOpenJDK Java 11 (including the JRE). We decided to use Java 11 as this is a 3-year supported (Long Term Support), Java 8 is no longer updated.


if you already have Brew.sh installed, that's definitely the easiest way (if not, it's not hard, just a big download+big install process)



On Tue, Jan 15, 2019 at 7:33 AM irkmiller1964 <irkmiller@...> wrote:
Could use some help trying to get the software to run on my Mac.

So far, I have been unable to get a console window for Java. From what I've been able to determine, it doesn't show on the Mac unless a Java program is already running, which makes checking the Java console problematic if you can't get the program in question to run.

BUT....

I was able to finally figure out how to try and start it from the Terminal Command line and get some feedback:

I am running Java 8 update 191. Attempting to run the pcgen.jar I get theĀ 

Error: A JNI error has occurred, please check your installation and try again

Exception in thread "main" java.lang.UnsupportedClassVersionError: pcgen/system/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:763)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)

at java.net.URLClassLoader.access$100(URLClassLoader.java:73)

at java.net.URLClassLoader$1.run(URLClassLoader.java:368)

at java.net.URLClassLoader$1.run(URLClassLoader.java:362)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:361)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)

Join main@pcgen.groups.io to automatically receive all group messages.