How do you run the SecureSocial demo?

浪子不回头ぞ 提交于 2019-12-01 06:58:59

问题


I downloaded securesocial-master.zip from https://github.com/jaliss/securesocial/tree/master

1.After extracting, change directory

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

2.run activator

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

The Error message:

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

回答1:


According to you input information:

  1. cd to

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

2.run activator from the root directory

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

3.type command project and press TAB key, ane you can choose demo:

> project javaDemo

4.Run this demo

[java-demo] $ run

result

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

P.S.

use help for more details

[java-demo] $ help project




回答2:


You have to run sbt from the project root, then use the command project javaDemo to navigate to the java demo, then run to actually run it.



来源:https://stackoverflow.com/questions/29110389/how-do-you-run-the-securesocial-demo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!