mcaselector icon indicating copy to clipboard operation
mcaselector copied to clipboard

MCA not working on mac

Open Chillarity opened this issue 2 years ago • 20 comments

Describe the bug MCA version 1.17.3 is not opening on mac

To Reproduce Steps to reproduce the behavior:

  1. download the jar file
  2. open it
  3. gives the message: "Java application launch failed. Check Console for possible error messages related to "/Users/name/Downloads/mcaselector-1.17.3"."

Expected behavior the program would run

Environment (please complete the following information):

  • OS: MacOS
  • Java version: 17
  • Version of MCA Selector 1.17.3

Chillarity avatar Jun 07 '22 14:06 Chillarity

When run from a command line using java -jar the message is: Error: LinkageError occurred while loading main class net.querz.mcaselector.Main java.lang.UnsupportedClassVersionError: net/querz/mcaselector/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 57.0

I am running Java Version 8 Update 333 (build 1.8.0_333-b02)

fjcanas avatar Jun 08 '22 05:06 fjcanas

Same problem

tompayne36 avatar Jun 09 '22 18:06 tompayne36

That error indicates the class files have been compiled with a newer version of Java than the version you are running it with. You probably need to upgrade your java runtime.

SoftwareMaven avatar Jun 09 '22 23:06 SoftwareMaven

I got it to work by using the version of Java listed on the install page (zulu17.30.51-ca-fx-jre17.0.1-macosx_x64.zip). That appears to report:

openjdk version "17.0.1" 2021-10-19 LTS OpenJDK Runtime Environment Zulu17.30+51-CA (build 17.0.1+12-LTS) OpenJDK 64-Bit Server VM Zulu17.30+51-CA (build 17.0.1+12-LTS, mixed mode, sharing)

When I download the latest version of Java from java.com (today), it reports:

java version "1.8.0_333" Java(TM) SE Runtime Environment (build 1.8.0_333-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

The versioning of Java is very confusing.

tompayne36 avatar Jun 10 '22 00:06 tompayne36

Same problem, I'm using the latest Java runtime (same as above). I redownloaded and reopened MCA Selector after hitting this bug and then having to upgrade my Java runtime. Same error.

tmcelrath avatar Jun 11 '22 18:06 tmcelrath

I too am having the same issue. Running macOS Monterey Version 12.4 with Java Version 8 Update 333 and get the error: 'Java application launch failed. Check Console for possible error messages related to "/Users/name/Downloads/mcaselector-1.17.3' when trying to open mcaselector-1.17.3.jar file.

BesaBlock avatar Jun 12 '22 02:06 BesaBlock

What version of java appears when you run java --version

ABUCKY0 avatar Jun 14 '22 20:06 ABUCKY0

user@User-iMac ~ % java -version java version "1.8.0_333" Java(TM) SE Runtime Environment (build 1.8.0_333-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

BesaBlock avatar Jun 15 '22 21:06 BesaBlock

Go to the command line, use cd Users/name/Downloads/ and then use java -jar mcaselector-1.17.3.jar and tell me what the console prints

user@User-iMac ~ % java -version java version "1.8.0_333" Java(TM) SE Runtime Environment (build 1.8.0_333-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

ABUCKY0 avatar Jun 15 '22 23:06 ABUCKY0

user@User-iMac Downloads % java -jar mcaselector-1.17.3.jar Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: net/querz/mcaselector/Main has been compiled by a more recent version of the Java Runtime (class file version 61.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:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)

I see also that mcaselector-2.0.jar is now available. I've downloaded and tried the same command for that too.

user@User-iMac Downloads % java -jar mcaselector-2.0.jar
Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: net/querz/mcaselector/Main has been compiled by a more recent version of the Java Runtime (class file version 61.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:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)

BesaBlock avatar Jun 16 '22 00:06 BesaBlock

Update Java. mcaselector was compiled with a newer version of java.

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

is saying Uh Oh, This program was made with a newer version of Java, With class version 61. I only support class versions up to Class Version 52

ABUCKY0 avatar Jun 16 '22 01:06 ABUCKY0

Here is a link from Oracle you may find helpful https://docs.oracle.com/javase/10/install/installation-jdk-and-jre-macos.htm#JSJIG-GUID-0071963E-D247-4D15-BF49-AD19C7260740

ABUCKY0 avatar Jun 16 '22 01:06 ABUCKY0

Okay, so I think what your saying is that it won't work because you don't support it? If this is the case, will you support it in the future or will I not be able to use mcaselector again?

BesaBlock avatar Jun 16 '22 01:06 BesaBlock

Java has different versions, similarly to how minecraft updates. To get the new blocks (or in this case, the program access), you need to update java. Mac is supported, you just need to update java. Look up a youtube video on how to do so

ABUCKY0 avatar Jun 16 '22 01:06 ABUCKY0

It is not about updating Java. It is about using the right/supported version. Use the "zulu" version from the install page.

tompayne36 avatar Jun 16 '22 01:06 tompayne36

It is not about updating Java. It is about using the right/supported version. Use the "zulu" version from the install page.

I've tried looking for the 'Zulu' version but can't find it. Are you able to send me the link?

BesaBlock avatar Jun 16 '22 01:06 BesaBlock

Java has different versions, similarly to how minecraft updates. To get the new blocks (or in this case, the program access), you need to update java. Mac is supported, you just need to update java. Look up a youtube video on how to do so

I have already done this.

BesaBlock avatar Jun 16 '22 01:06 BesaBlock

From the macOS section of this page: https://github.com/Querz/mcaselector/wiki/Installation

https://cdn.azul.com/zulu/bin/zulu17.30.51-ca-fx-jre17.0.1-macosx_x64.zip

tompayne36 avatar Jun 16 '22 01:06 tompayne36

https://cdn.azul.com/zulu/bin/zulu17.30.51-ca-fx-jre17.0.1-macosx_x64.zip

Thankyou tompayne36 that work!

BesaBlock avatar Jun 16 '22 01:06 BesaBlock

*worked

BesaBlock avatar Jun 16 '22 01:06 BesaBlock