Я пытаюсь запустить приложение play 2.0.1 в Ubuntu 11.10, и когда я 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
не включен в classpath?