3

I want to paste a file into /System/Library/Java/Extensions path but there is no "paste" button

There is no paste button. So I tried to change permissions, but when I checked I already have the permission to read & write. to this folder. Finally I tried to paste this file via Terminal. But this time it says "no such directory or file"

No such file.

How can I solve this issue?

  • 3
    You can‘t copy data in /System and below. What do you want to accomplish here? – nohillside May 02 '20 at 17:12
  • I need it for my electronic signature. It says I should do that in users Manuel. – Aybars Yavuz May 02 '20 at 19:02
  • https://apple.stackexchange.com/questions/208478/how-do-i-disable-system-integrity-protection-sip-aka-rootless-on-macos-os-x – pkamb May 02 '20 at 19:20
  • Are the instructions you are following available in english, or can they be run through Google Translate? If yes, can you please add a link. – nohillside May 02 '20 at 19:22
  • I suspect you could put the file in ~/Library/Extensions/Java/ See https://aldoblog.com/2002/05/where-to-put-java-extensions-on-mac-os-x/ I'm not a Java person. ymmv – historystamp May 02 '20 at 19:31

1 Answers1

5

You have run into System Integrity Protection ( SIP ) which protects certain system folders from being changed.

https://support.apple.com/en-us/HT204899

To make the copy anyway, you turn off SIP. Be sure to turn SIP back on when done. It's a hassle.

https://www.macworld.co.uk/how-to/mac/how-turn-off-mac-os-x-system-integrity-protection-rootless-3638975/

I'd look for an alternative folder to place the file. I'm not a Java person. I did find:

https://stackoverflow.com/questions/12842063/where-to-install-jar-files-on-os-x-so-other-java-applications-will-find-them

https://aldoblog.com/2002/05/where-to-put-java-extensions-on-mac-os-x/

historystamp
  • 1,900
  • 2
    Here's a relevant item in Apple's old developer docs. Summary: put extensions in /Library/Java/Extensions (which makes them available to all users on the computer) or ~/Library/Java/Extensions (i.e. the parallel folder inside your home folder, which makes them available to just your account). BTW, starting in Catalina, SIP is reinforced by a split file system which prevents writing to /System even with SIP turned off. – Gordon Davisson May 02 '20 at 20:03
  • @GordonDavisson You should post this as an answer. – benwiggy May 02 '20 at 21:28