Error when trying to open .jar extension app

By Karina Velazquez, 5 February, 2022

Forum
macOS and Mac Apps

Hi, I need to open a dot jar app and it keeps showing this message:
Operation can't be completed, . Unable to locate a Java Runtime.

I have downloaded the last java installation, have installed it like 10 times, , and it is supposed to have a java control center or icon under the macOS settings menu, but there is no such thing, so I think that java is not installing after all, or any suggestions?

I'm running macOS Monterey and

Options

Comments

By jim pickens on Monday, February 28, 2022 - 02:52

I’m getting the same error, some backstory, I’ve been trying to get an accessibility mod for Minecraft, I found it, when I was installing it, it gives me the same error, I’ve also tried installing on windows, but Minecraft does not work properly, it keeps loading, anyway, I’m getting the same error, it might be a bug?

By jim pickens on Monday, February 28, 2022 - 02:52

It seems like the error is, unable to locate the Java runtime on your system, please get help from, then it inserts a link to the Java website.

By dog on Monday, February 28, 2022 - 02:52

If you run in Terminal:

"which java"
(without the quotes)
what do you get?

By Karina Velazquez on Monday, February 28, 2022 - 02:52

well after typing that phrase, not sure if this is it but VoiceOver reads this:

/usr/bin/java
anas-air:~ kara$

By Unregistered User (not verified) on Monday, February 28, 2022 - 02:52

Does not the extension association option (in this case .jar) exist on mac?
This option exists on windows.
Cheers!

By dog on Monday, February 28, 2022 - 02:52

I get the same.

If you try to do what Zeirus mentioned,
1. Select the .jar file
2. Click Get Info
3. Select JavaLauncher