Sbt 未找到激活器ui java.io文件异常

Sbt 未找到激活器ui java.io文件异常,sbt,typesafe-activator,Sbt,Typesafe Activator,在windows 7的命令行工具中键入activator ui会显示以下错误消息 C:\Program Files\activator-dist-1.3.6>activator ui Found previous process id: 4164 Local repository: activator-launcher-local @ file:////C:/Program%20Files/activat or-dist-1.3.6/repository Play server proce

在windows 7的命令行工具中键入activator ui会显示以下错误消息

C:\Program Files\activator-dist-1.3.6>activator ui
Found previous process id: 4164
Local repository: activator-launcher-local @ file:////C:/Program%20Files/activat
or-dist-1.3.6/repository
Play server process ID is 4068
java.io.FileNotFoundException: C:\Program Files\activator-dist-1.3.6\RUNNING_PID
 (Access is denied)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
        at play.core.server.NettyServer$$anonfun$createServer$1.apply(NettyServe
r.scala:242)
        at play.core.server.NettyServer$$anonfun$createServer$1.apply(NettyServe
r.scala:230)
        at scala.Option.map(Option.scala:146)
        at play.core.server.NettyServer$.createServer(NettyServer.scala:230)
        at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:
289)
        at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:
284)
        at scala.Option.map(Option.scala:146)
        at play.core.server.NettyServer$.main(NettyServer.scala:284)
        at activator.UIMain$$anonfun$run$1.apply$mcV$sp(UIMain.scala:106)
        at activator.UIMain$$anonfun$run$1.apply(UIMain.scala:106)
        at activator.UIMain$$anonfun$run$1.apply(UIMain.scala:106)
        at activator.UIMain.withContextClassloader(UIMain.scala:217)
        at activator.UIMain.run(UIMain.scala:106)
        at activator.UIMain.run(UIMain.scala:86)
        at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
        at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
        at xsbt.boot.Launch$.run(Launch.scala:109)
        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
        at xsbt.boot.Launch$.launch(Launch.scala:117)
        at xsbt.boot.Launch$.apply(Launch.scala:18)
        at xsbt.boot.Boot$.runImpl(Boot.scala:41)
        at xsbt.boot.Boot$.main(Boot.scala:17)
        at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.FileNotFoundException: C:\Program Files\acti
vator-dist-1.3.6\RUNNING_PID (Access is denied)
在谷歌搜索过之后,我看到了类似的问题,但也有一个类似的例外,我还没有找到一个帖子来处理我遇到的问题


编辑:我发现如果我安装最小激活器构建并运行以下命令:activator-Dhttp.port=9999ui。activator会在浏览器中启动,但我在尝试运行完整安装版本时收到上面发布的错误

我99%确定您的问题是因为路径中存在空间。尝试将activator dist放在没有空格的地方

这里提到:

在Windows上,添加;C:\path\to\activator到path环境变量。不要使用带有空格的路径


激活器无法创建运行\u PID的文件。使用activator ui命令以管理员用户身份运行该命令。

这确实有效。确保typesafe activator使用的默认端口未订阅其他端口,否则它将无法启动。