1

I'm trying to start a Play! instance from Java like this:

 public static void main(String[] args) {
 xsbt.boot.Boot.main(new String[]{"run"});
 }

that throws

Exception in thread "main" java.lang.IncompatibleClassChangeError: Expected static method scala.Array$.unapplySeq(Ljava/lang/Object;)Lscala/Option;
 at xsbt.boot.Boot$.main(Boot.scala:14)
 at xsbt.boot.Boot.main(Boot.scala)
 at PlayPlay.main(PlayPlay.java:16)

Is there a way to start Play! from a Java program ?

asked Aug 16, 2013 at 12:18

1 Answer 1

1

I am assuming you mean start the Play server. Then the following should work provided you have the classpath set properly.

public static void main(String[] args) throws Exception {
 play.core.server.NettyServer.main(args);
}
answered Aug 16, 2013 at 13:40
Sign up to request clarification or add additional context in comments.

1 Comment

It starts up, but does'nt do the same (autom. compiling etc).

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.