title: How to change folder permissions with java on Mac?
body: <p>I'm building a program that uses RXTX serial connection, the RXTX driver files need to be added in the /Library/Java/Extensions folder. To copy the drivers in the folder I first need to give a password before I can enter the paste function. Is there any way (maybe with a batch file) to copy my files in the protected folder? All the items on the internet shows the way to change the rights of the file not the folder.</p>
  
  <p>I'm running MacOS 10.13.4 
  Thank you!</p>