Xairam
Xairam

Reputation: 71

playframework 2.5.0 Template fail to compile (fresh one)

I would like to get started with play running play 2.5... but even installing the template with activator "play-java" has an error.

Using unsupported version of Play: 2.5.0

I have downloaded the full activator package and the minimal. Both fail on 2 machines(JDK 73).

NO clue how to catch up on this, perhaps some could help me out. I would appreciate it very much.

Bets regards

Upvotes: 7

Views: 849

Answers (3)

user3537845
user3537845

Reputation: 61

Using 'activator ui', causes the activator to cycle. The error message is "Getting 'Using unsupported version of Play: 2.5.0'". The issue tracking the problem is https://github.com/typesafehub/activator/issues/1102.

Using 'activator' without the ui argument is a work-around.

Change directories to the play-java directory and running ./activator without the ui argument. This brings up the sbt command line. Sbt commands help, about, tasks, update, compile, test, and run work. A web browser pointed at localhost:9000 will contain a text field with "You're using Play 2.5.0" as content.

The "run" command starts a Netty server. Application interaction is possible using localhost:9000 in a web browser.

Upvotes: 1

aloon
aloon

Reputation: 403

Play framework requires java 8 since 2.4 version https://www.playframework.com/documentation/2.4.x/Migration24#Java-8-support

Upvotes: 0

user404345
user404345

Reputation:

As a workaround you can create a project without the UI by using something like

activator new my-app play-scala

Upvotes: 0

Related Questions