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: 489

Superhai

macrumors 6502a
Apr 21, 2010
734
574
I guess it is being quarantined by macOS gatekeeper. In terminal try to run xattr -d com.apple.quarantine file.jar
 

fishkorp

macrumors 68030
Apr 10, 2006
2,536
650
Ellicott City, MD
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

Gerdi

macrumors 6502
Apr 25, 2020
449
301
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.
 

jdb8167

macrumors 601
Nov 17, 2008
4,854
4,594
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.
 

Gerdi

macrumors 6502
Apr 25, 2020
449
301
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.
 

jdb8167

macrumors 601
Nov 17, 2008
4,854
4,594
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.
 

haralds

macrumors 68030
Jan 3, 2014
2,984
1,246
Silicon Valley, CA
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.