我从https://github.com/jaliss/securesocial/tree/master下载securesocial-master.zip

1,解压后更改目录

cd C:\Users\ddd\play\securesocial-master

2.运行激活器
C:\Users\ddd\play\securesocial-master\activator run

错误消息:
C:\Users\DDD\workspace\securesocial-master>activator run
[info] Loading project definition from C:\Users\DDD\workspace\securesocial-m
aster\project
[info] Set current project to SecureSocial-parent (in build file:/C:/Users/DDD
/workspace/securesocial-master/)
[info] Updating {file:/C:/Users/DDD/workspace/securesocial-master/}root...
[info] Resolving org.scala-lang#scala-library;2.11.1 ...
  [info] Resolving org.scala-lang#scala-compiler;2.11.1 ...
  [info] Resolving org.scala-lang#scala-reflect;2.11.1 ...
  [info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.2 ...
  [info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.1 ..
.
  [info] Resolving jline#jline;2.11 ...
[info] Done updating.
java.lang.RuntimeException: No main class detected.
        at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last root/compile:run for the full output.
[error] (root/compile:run) No main class detected.
[error] Total time: 0 s, completed Jun 1, 2015 10:02:06 AM

最佳答案

根据您输入的信息:

  • cd到

  • C:\ Users \ ddd \ play \ securesocial-master

    2.从根目录运行激活器

    C:\ Users \ ddd \ play \ securesocial-master \ activator

    3.输入命令项目并按TAB键,可以选择演示:

    >项目javaDemo

    4,运行这个演示

    [java-demo] $运行

    结果

    (服务器已启动,请使用Ctrl + D停止并返回控制台...)

    附言

    使用帮助获取更多详细信息

    [java-demo] $帮助项目

    10-04 14:14