我正在尝试在 Ubuntu 11.10 上运行我的 play 2.0.1 应用程序,当我访问时,我domain.com:9000
在终端中收到此错误:
info] Compiling 4 Scala sources and 6 Java sources to /var/www/clients/client3/web10/sc2lounge/target/scala-2.9.1/classes...
[error] /var/www/clients/client3/web10/sc2lounge/app/models/Cron.java:29: error: package com.sun.tools.javac.util does not exist
[error] import com.sun.tools.javac.util.List;
[error] ^
[error] 1 error
[error] {file:/var/www/clients/client3/web10/sc2lounge/}sc2lounge/compile:compile: javac returned nonzero exit code
[error] application -
! Internal server error, for request [GET /] ->
sbt.PlayExceptions$CompilationException: Compilation error [error: package com.sun.tools.javac.util does not exist]
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$2$$anonfun$apply$11$$anonfun$apply$12.apply(PlayReloader.scala:224) ~[na:na]
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$2$$anonfun$apply$11$$anonfun$apply$12.apply(PlayReloader.scala:224) ~[na:na]
at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.2]
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$2$$anonfun$apply$11.apply(PlayReloader.scala:224) ~[na:na]
at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$2$$anonfun$apply$11.apply(PlayReloader.scala:221) ~[na:na]
at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.2]
我在我的文件中JAVA_HOME
设置了这样的:.bashrc
JAVA_HOME=/usr/lib/jvm/default-java #Which is a symbolic link to java-7-openjdk-common
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
的输出java -version
是:
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
的输出javac -version
是:
javac 1.7.0_147
我的问题是,为什么com.sun.tools.javac.util.List
不包含在类路径中?