How can I run playframework 2.0 (downloaded from github)

213 views
Skip to first unread message

Jonas

unread,
Jan 16, 2012, 1:19:41 PM1/16/12
to play-framework
I have downloaded the latest playframework 2.0, the zip-file from the
master on GitHub.

How can I compile and run it?

I changed to framework/ and typed "build", I guess this is
compilation.

Then I tried to run "play new playweb" but I got this error:


Getting play console_2.9.1 2.0-RC1-SNAPSHOT ...

:: problems summary ::
:::: WARNINGS
module not found: play#console_2.9.1;2.0-RC1-SNAPSHOT

==== local: tried

C:\Users\Jonas\playframework-Play20\repository/local/play/
console_2.9.
1/2.0-RC1-SNAPSHOT/ivys/ivy.xml

==== Maven2 Local: tried

file://C:\Users\Jonas/.m2/repository/play/console_2.9.1/2.0-RC1-SNAPSH
OT/console_2.9.1-2.0-RC1-SNAPSHOT.pom

....


How can I run the play framework 2.0 downloaded from GitHub?

Anthony Whitford

unread,
Jan 16, 2012, 1:26:09 PM1/16/12
to play-fr...@googlegroups.com
I think you need to sbt publish-local (not just build):
  • `publish-local` - This will publish the current version of scala into your local `~/.ivy2` directory.

Jonas

unread,
Jan 16, 2012, 2:26:48 PM1/16/12
to play-framework
I saw that I was supposed to execute multiple commands after "build".

I run, .\build and then update and compile, but I got errors when
compiling:

[error] C:\Users\Jonas\playframework-Play20\framework\src\play\src\main
\java\pla
y\mvc\Http.java:159: error: unmappable character for encoding Cp1252
[error] public abstract Cookies cookies(); // FIXME Provide a
ÔÇ£Cookie
cookie(String name)´┐¢? function instead of this one?
[error]
^
[error] C:\Users\Jonas\playframework-Play20\framework\src\play\src\main
\java\pla
y\mvc\Http.java:353: error: unmappable character for encoding Cp1252
[error] * Set a new transient cookie with path ÔÇ£/´┐¢?<br />
[error] ^
[error] C:\Users\Jonas\playframework-Play20\framework\src\play\src\main
\java\pla
y\mvc\Http.java:366: error: unmappable character for encoding Cp1252
[error] * Set a new cookie with path ÔÇ£/´┐¢?
[error] ^
[error] 3 errors
[error] {file:/C:/Users/Jonas/playframework-Play20/framework/}Play/
compile:compi
le: javac returned nonzero exit code
[error] Total time: 75 s, completed 2012-jan-16 20:23:22
>

Any way to solve this?

Ben McCann

unread,
Jan 16, 2012, 5:09:25 PM1/16/12
to play-fr...@googlegroups.com
I'm guessing you're trying to compile on Windows?  Someone submitted a fix, but unfortunately no one's committed it yet.  You could try patching the fix in manually for the time being.

-Ben

Guillaume Bort

unread,
Jan 17, 2012, 5:04:54 AM1/17/12
to play-fr...@googlegroups.com
Can you try now?

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>

--
Guillaume Bort

Jonas

unread,
Jan 17, 2012, 6:50:17 AM1/17/12
to play-framework
I downloaded the latest master code using Git this time. Yes, I'm
using Windows.

But I still get a compilation error:

[error] C:\Users\Jonas\playframework\Play20\framework\src\sbt-plugin
\src\main\sc
ala\PlaySettings.scala:141: not found: value PlayLogManager
[error] logManager <<= extraLoggers(PlayLogManager.default),
[error] ^
[warn] two warnings found
[error] one error found
[error] {file:/C:/Users/Jonas/playframework/Play20/framework/}SBT-
Plugin/compile
:compile: Compilation failed
[error] Total time: 87 s, completed 2012-jan-17 12:47:18

Ben McCann

unread,
Jan 17, 2012, 8:48:57 AM1/17/12
to play-fr...@googlegroups.com
Try one more time.  That file was left out of a commit and then added later.

-Ben

Jonas

unread,
Jan 17, 2012, 1:35:16 PM1/17/12
to play-framework
Thanks. It seem to work now.

On 17 Jan, 14:48, Ben McCann <benjamin.j.mcc...@gmail.com> wrote:
> Try one more time.  That file was left out of a commit and then added later<https://github.com/playframework/Play20/commit/9a45eab821ae45e4884c0b...>
> .
>
> -Ben
Reply all
Reply to author
Forward
0 new messages