【问题标题】:Missing sbt/boot/ directory in new play-2.1.1 installation. Playframework installation on Linux Mint 14新的 play-2.1.1 安装中缺少 sbt/boot/ 目录。在 Linux Mint 14 上安装 Playframework
【发布时间】:2013-04-30 02:44:23
【问题描述】:

我正在尝试安装 Play! Linux Mint 盒子上的框架,但我很难。安装后,当我在命令行输入 play help 时收到以下错误消息:

    $ play help
java.io.FileNotFoundException: /home/play-2.1.1/framework/sbt/boot/update.log (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:218)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
    at java.io.FileWriter.<init>(FileWriter.java:90)
    at xsbt.boot.Update.<init>(Checks.java:51)
    at xsbt.boot.Launch.update(Launch.scala:275)
    at xsbt.boot.Launch$$anonfun$jnaLoader$1.apply(Launch.scala:120)
    at scala.Option.getOrElse(Option.scala:108)
    at xsbt.boot.Launch.jnaLoader$2f324eef(Launch.scala:115)
    at xsbt.boot.Launch.<init>(Launch.scala:94)
    at xsbt.boot.Launcher$.apply(Launch.scala:290)
    at xsbt.boot.Launch$.apply(Launch.scala:16)
    at xsbt.boot.Boot$.runImpl(Boot.scala:31)
    at xsbt.boot.Boot$.main(Boot.scala:20)
    at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.FileNotFoundException: /home/play-2.1.1/framework/sbt/boot/update.log (No such file or directory)

可以看出,play 安装在 /home 目录下。 .bashrc 文件内容如下:

$ cat ~/.bashrc
export PATH=""/home/play-2.1.1:$PATH""
export JAVA_HOME=/usr/local/java/jdk1.7.0_12
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$JAVA_HOME/lib/dt.jar:.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar

我想知道我是否在安装过程中遗漏了一些导致难以启动和运行的内容。将感谢有用的提示和建议。非常感谢。

【问题讨论】:

    标签: scala playframework sbt playframework-2.1 linux-mint


    【解决方案1】:

    确保您对 Play 框架路径具有写入权限。如果不这样做,您将收到此错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-09
      • 1970-01-01
      • 1970-01-01
      • 2022-01-03
      • 2014-07-15
      • 2018-03-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多