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

后端 未结 3 657
长发绾君心
长发绾君心 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 10:53

    The (Permission denied) error says that you're probably running the sbt command from a user that doesn't have permission for the project you're entering sbt in.

    Change folder permissions with chown -R youruser:youruser /path/to/project and it should fix it.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-18 11:12

    Neither of answers helped me, but @Priyatham gave a great idea: i also removed project/project and project/target folders - and it worked.

    0 讨论(0)
提交回复
热议问题