Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cobapple

macrumors newbie
Original poster
Dec 15, 2020
2
0
Hi guys, I've many jar files (java applications) that can't be run on Macbook Air M1. Everytime I open it, it says the file is damaged an can't be opened (see screenshot below).

How do I solve this?

Thanks in advance
 

Attachments

  • Screen Shot 2021-04-12 at 09.31.27.png
    Screen Shot 2021-04-12 at 09.31.27.png
    154.5 KB · Views: 499
I guess it is being quarantined by macOS gatekeeper. In terminal try to run xattr -d com.apple.quarantine file.jar
 
Look at the message, it’s trying to extract it (since a JAR is essentially a zip file) not run it.

Have you installed a JDK to actually run it? JDK doesn’t come with it by default.
 
  • Like
Reactions: Nermal
I thought OpenJDK for M1 is still in beta? I know it is based on the Windows ARM64 OpenJDK, which merged into mainline last year.
 
I thought OpenJDK for M1 is still in beta? I know it is based on the Windows ARM64 OpenJDK, which merged into mainline last year.
No, most of the JDKs of 8 and up are available. They don't say beta anyway. I have a couple installed via brew and a few downloaded from Azul.
 
No, most of the JDKs of 8 and up are available. They don't say beta anyway. I have a couple installed via brew and a few downloaded from Azul.

Are you sure we are talking about native ARM64 versions? Of course i guess you can just run the x64 version under emulation just fine.
 
Are you sure we are talking about native ARM64 versions? Of course i guess you can just run the x64 version under emulation just fine.
Yes. These are are all native Aarch64. Some of the brew versions aren’t though. You have to check.
 
Azul is native, indeed. Download here.
Use Firefox, Safari has trouble with Azul's version selector routine checking platform specs.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.