Search code examples
scalautf-8playframework-2.0typesafe-stack

play framework NoClassDefFoundError


I've downloaded the typesafe stack for windows and created a new project. When I fire up sbt and try to run the new unmodified application there's this error:

[error] java.lang.NoClassDefFoundError: org/jboss/netty/channel/ChannelFactory

just out of curiosity I also tried to compile the project. The error is different:

[error] IO error while decoding .....welcome.template.scala with UTF-8
[error] Please try specifying another one using the -encoding option

What can I do to fix this ?


Solution

  • I found that in my script there is one -Dfile.encoding=UTF-8, but I also encounter the same error:

    [error] IO error while decoding .....*.java with UTF-8 [error] Please try specifying another one using the -encoding option