您如何 运行 SecureSocial 演示?

How do you run the SecureSocial demo?

我从 https://github.com/jaliss/securesocial/tree/master

下载了 securesocial-master.zip

1.After 提取,更改目录

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

2.run 激活剂

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

您必须从项目根目录 运行 sbt,然后使用命令 project javaDemo 导航到 java 演示,然后 run 到实际上运行它。

根据您输入的信息:

  1. cd 到

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

2.run根目录下的激活器

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

3.type命令工程,按TAB键,可以选择demo:

> project javaDemo

4.Run 这个演示

[java-demo] $ run

结果

(Server started, use Ctrl+D to stop and go back to the console...)

P.S.

使用帮助了解更多详情

[java-demo] $ help project