Error during sbt execution: java.io.FileNotFoundException:

本文解决在Ubuntu环境下使用sbt搭建Project时遇到的权限问题,通过修改默认用户权限成功解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天在ubuntu下用sbt搭建Project时有如下报错

Project does not exist, create new project? (y/N/s) s
java.io.FileNotFoundException: 
****/project/build.properties (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:209
        at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
        at xsbt.boot.Initialize$.process(Create.scala:44)
        at xsbt.boot.Initialize$.create(Create.scala:24)
        at xsbt.boot.Launch$.parsed(Launch.scala:28)
        at xsbt.boot.Launch$.configured(Launch.scala:21)
        at xsbt.boot.Launch$.apply(Launch.scala:16)
        at xsbt.boot.Launch$.apply(Launch.scala:13)
        at xsbt.boot.Boot$.runImpl(Boot.scala:24)
        at xsbt.boot.Boot$.run(Boot.scala:19)
        at xsbt.boot.Boot$.main(Boot.scala:15)
        at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.FileNotFoundException: 
****/project/build.properties (No such file or directory)

可是有时候就正常,google了好久,没有答案

最后原因居然是ubuntu权限问题,默认用户不能创建路径,之前是直接用

sbt
命令,如果用
sudo sbt
以管理员权限运行问题就解决了,内牛满面啊哭
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值