SBT throws java.io.FileNotFoundException: (Permission denied) on project folder

后端 未结 3 682
长发绾君心
长发绾君心 2021-01-18 10:36

I\'m wondering whether anyone has any experience with a java.io.FileNotFoundException while trying to run SBT.

When I try to get SBT running I get the e

3条回答
  •  执笔经年
    2021-01-18 11:08

    The problem could be that you ran sbt as root and few directories inside target folder became root(hence permission denied issue). You can just run sudo rm -rf target/ and then sbt clean compile to regain those compiled files under your account. Worked for me.

提交回复
热议问题