Domanda

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 ?

È stato utile?

Soluzione

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

Altri suggerimenti

This sounds like a classpath prblem. Make sure the netty jar is included in there

can you please try to add -Dfile.encoding=UTF-8 to your sbt script and see if that helps?

I also tweaked the template, please discard the app folder and try to create a new app with g8

After tweak default template is working but if i will add "ä" character to the file

@main("Welcome to ü") {
    @welcome(message)
}

It will throw error:

IO error while decoding /.../views/html/index.template.scala with UTF-8 Please try specifying another one using the -encoding option

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top