安装activator 1.2.7并从安装目录运行以下命令后:
./activator ui
抛出以下UsefulExeption
异常:
kevin@comp:~/applications/activator-1.2.7$ ./activator ui
Checking for a newer version of Activator (current version 1.2.7)...
... our current version 1.2.7 looks like the latest.
FOUND REPO = activator-local @ file:/home/kevin/applications/activator-1.2.7/repository
java.lang.NoClassDefFoundError: play/api/UsefulException
at activator.Global$.<init>(Global.scala:12)
at activator.Global$.<clinit>(Global.scala)
at activator.UIMain.run(UIMain.scala:106)
at activator.UIMain.run(UIMain.scala:87)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:129)
at xsbt.boot.Launch$.run(Launch.scala:109)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:19)
at xsbt.boot.Boot$.runImpl(Boot.scala:44)
at xsbt.boot.Boot$.main(Boot.scala:20)
at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.lang.ClassNotFoundException: play.api.UsefulException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 13 more
如果我以activator ui
的超级用户身份运行sudo
,则不会出现此问题。我希望能够以正常的权限启动激活器ui。
在激活器文件夹中运行ls -lah
会产生以下输出:
kevin@ubuntu:~/applications$ ls -lah ./activator-1.2.7
total 1.2M
drwxr-xr-x 4 kevin kevin 4.0K Aug 10 16:11 .
drwxr-xr-x 6 kevin kevin 4.0K Aug 10 15:46 ..
-rwxr--r-- 1 kevin kevin 9.5K Aug 5 17:35 activator
-rwxr--r-- 1 kevin kevin 6.9K Aug 5 17:35 activator.bat
-rwxr--r-- 1 kevin kevin 1.2M Aug 5 17:35 activator-launch-1.2.7.jar
-rw-r--r-- 1 kevin kevin 5.8K Aug 5 17:35 LICENSE.html
-rw-r--r-- 1 kevin kevin 6.3K Aug 5 17:35 README.html
drwxr-xr-x 132 kevin kevin 4.0K Aug 5 17:35 repository
drwxr-xr-x 12 kevin kevin 4.0K Aug 5 17:35 templates
kevin@ubuntu:~/applications$
我在Ubuntu 14.04上使用Play 2.3.2 / Activator 1.2.7。
答案 0 :(得分:1)
在我看来,您当前的用户没有权利访问&#34; /home/kevin/applications/activator-1.2.7 /"
下的文件您应该授予他访问这些文件的权限。