playframework 2.2 - Why does sbt fail with NoClassDefFoundError: play/Play$ in Play 2.2.x projects after sbt compile in Play 2.3 project? -
playframework 2.2 - Why does sbt fail with NoClassDefFoundError: play/Play$ in Play 2.2.x projects after sbt compile in Play 2.3 project? -
once run 'sbt compile' on 2.3 play project, can't utilize 'sbt compile' compile play 2.2.x projects anymore. error when run sbt command.
[info] loading project definition /users/macbookpro/playproject/project [error] java.lang.noclassdeffounderror: play/play$ [error] utilize 'last' total log. project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
that's interesting issue since works me (tm) on mac os x 10.9.3 java 7.
i downloaded versions of play - latest 2.3.1 , latest in 2.2.x stream - 2.2.3. these 2 versions i've used activator
(2.3.1) create web application , play
2.2.3. both worked well.
when executed sbt compile
in 2.3.1 , 2.2.3, both commands worked fine, too. took me time have dependencies downloaded, @ end results follows:
jacek:~/sandbox/play231-app $ sbt compile [info] loading project definition /users/jacek/sandbox/play231-app/project [info] updating {file:/users/jacek/sandbox/play231-app/project/}play231-app-build... ... [info] done updating. [info] compiling 5 scala sources , 1 java source /users/jacek/sandbox/play231-app/target/scala-2.11/classes... [info] 'compiler-interface' not yet compiled scala 2.11.1. compiling... [info] compilation completed in 14.895 s [success] total time: 200 s, completed jun 25, 2014 1:00:18 pm
and 2.2.3:
jacek:~/sandbox/play223-app $ sbt compile [info] loading project definition /users/jacek/sandbox/play223-app/project [info] set current project play223-app (in build file:/users/jacek/sandbox/play223-app/) [info] updating {file:/users/jacek/sandbox/play223-app/}play223-app... ... [info] done updating. [info] compiling 5 scala sources , 1 java source /users/jacek/sandbox/play223-app/target/scala-2.10/classes... [info] 'compiler-interface' not yet compiled scala 2.10.3. compiling... [info] compilation completed in 19.626 s [success] total time: 45 s, completed jun 25, 2014 3:15:34 pm
i'm using sbt 0.13.5 installed using homebrew.
$ sbt --version sbt launcher version 0.13.5 $ java -version java version "1.7.0_60" java(tm) se runtime environment (build 1.7.0_60-b19) java hotspot(tm) 64-bit server vm (build 24.60-b09, mixed mode)
sbt playframework-2.2 playframework-2.3
Comments
Post a Comment