I have a Java project and I want to modify it in intellij but I can\'t do it because of this \" read-only file \" or \"file is not writable\"
If IntelliJ IDEA is unable to change the file permissions using File | Make File Writable, then perhaps another user is owning that file, e.g. root (use this command to verify: ls -hal /path/to/File.java
)
If someone else owns it, for whatever reason, you can change the permissions yourself using the chown command in the terminal:
sudo chown yourusername /path/to/File.java
,
where yourusername
is the same user that you used to launch Intellij IDEA.