Closed jirir closed 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
I see.
sudo xattr -r -d com.apple.quarantine /path/to/graalvm
makes it work.
Glad to hear it's working now.
@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?
/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
?
/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
Anything else I can do? I tried to restart my mac and it's still the same. Please advise, thank you!
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?
sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.0.0
Oh this worked! Thank you Fabio! @fniephaus
Glad it's working now, I hope the GraalVM team will eventually sign their bundles and get them notarized.
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.