activator ui java.io 找不到文件异常
activator ui java.io file not found exception
在 windows 7 上的命令行工具中输入激活器 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.apply(NettyServe
r.scala:242)
at play.core.server.NettyServer$$anonfun$createServer.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.apply(NettyServer.scala:
289)
at play.core.server.NettyServer$$anonfun$main.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.apply$mcV$sp(UIMain.scala:106)
at activator.UIMain$$anonfun$run.apply(UIMain.scala:106)
at activator.UIMain$$anonfun$run.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.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.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)
在谷歌上搜索后,我看到了类似的问题和类似的异常,但我还没有找到 post 来处理 IM 遇到的问题。
编辑:我发现如果我安装最小激活器 build 和 运行,则以下命令:activator -Dhttp.port=9999 ui
。激活器在浏览器中启动,但我在尝试 运行 完整安装 build 时收到上面的错误 posted。
我 99% 确定您的问题是因为路径中的 space。尝试将 activator-dist 放在没有 spaces.
的地方
这里提到了:
https://www.playframework.com/documentation/3.0.x/Installing
On Windows, add ;C:\path\to\activator to your PATH environment variable. Do not use a path with spaces.
激活器无法创建文件 RUNNING_PID
。 运行 以管理员用户身份使用 activator ui
命令。
在 windows 7 上的命令行工具中输入激活器 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.apply(NettyServe
r.scala:242)
at play.core.server.NettyServer$$anonfun$createServer.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.apply(NettyServer.scala:
289)
at play.core.server.NettyServer$$anonfun$main.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.apply$mcV$sp(UIMain.scala:106)
at activator.UIMain$$anonfun$run.apply(UIMain.scala:106)
at activator.UIMain$$anonfun$run.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.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.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)
在谷歌上搜索后,我看到了类似的问题和类似的异常,但我还没有找到 post 来处理 IM 遇到的问题。
编辑:我发现如果我安装最小激活器 build 和 运行,则以下命令:activator -Dhttp.port=9999 ui
。激活器在浏览器中启动,但我在尝试 运行 完整安装 build 时收到上面的错误 posted。
我 99% 确定您的问题是因为路径中的 space。尝试将 activator-dist 放在没有 spaces.
的地方这里提到了: https://www.playframework.com/documentation/3.0.x/Installing
On Windows, add ;C:\path\to\activator to your PATH environment variable. Do not use a path with spaces.
激活器无法创建文件 RUNNING_PID
。 运行 以管理员用户身份使用 activator ui
命令。