hpi-swa / trufflesqueak

A Squeak/Smalltalk VM and Polyglot Programming Environment for the GraalVM.
MIT License
283 stars 14 forks source link

“graalvm-ce-java11-21.0.0” is damaged and can’t be opened #132

Closed jirir closed 3 years ago

jirir commented 3 years ago

On macOS 11.1

Executing: /Applications/graalvm/graalvm-ce-java11-21.0.0/Contents/Home/bin/gu -C https://raw.githubusercontent.com/hpi-swa/trufflesqueak/master/gu-catalog.properties install smalltalk

says: “graalvm-ce-java11-21.0.0” is damaged and can’t be opened. You should move it to the Trash.

fniephaus commented 3 years ago

Have you followed the instructions to remove the quarantine attribute on macOS? See https://github.com/oracle/graal/issues/1724#issuecomment-539503007

jirir commented 3 years ago

I see. sudo xattr -r -d com.apple.quarantine /path/to/graalvm makes it work.

fniephaus commented 3 years ago

Glad to hear it's working now.

yingsu00 commented 3 years ago

@fniephaus @jirir I got the same problem. But running sudo xattr -r -d com.apple.quarantine /path/to/graalvm didn't help. I still get the error "graalvm-ce-java11-21.0.0” is damaged and can’t be opened". Anything else I can do?

fniephaus commented 3 years ago

/path/to/graalvm must point to the root directory of your GraalVM installation. Are you sure you didn't run the command against the GraalVM home directory, which ends with .../Contents/Home?

yingsu00 commented 3 years ago

/path/to/graalvm must point to the root directory of your GraalVM installation. Are you sure you didn't run the command against the GraalVM home directory, which ends with .../Contents/Home?

@fniephaus Yes

$ sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.0.0/Contents/Home
$ /Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.0.0/Contents/Home/bin/java
Killed: 9

Not only the pop up window appears when I tried to run java, it also pops out from time to time Screen Shot 2021-02-09 at 11 55 44 PM

Anything else I can do? I tried to restart my mac and it's still the same. Please advise, thank you!

fniephaus commented 3 years ago

You did run it against home and not the root, so try this:

sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.0.0

Does it work now?

yingsu00 commented 3 years ago

sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.0.0

Oh this worked! Thank you Fabio! @fniephaus

fniephaus commented 3 years ago

Glad it's working now, I hope the GraalVM team will eventually sign their bundles and get them notarized.