I found scala websocket example on github
I cloned this repo and made some small changes, I could get the server up running with sbt run
command.
I packed this into a jar
file with sbt package
command, and tried to run with scala -classpath jarfilespath server.jar
command, but with no luch
I tried adding all dependencies in the -classpath
, but I still got error java.lang.NoSuchMethodError:com.typesafe.config.Config.getDuration
I also tried using sbt-assembly
plugin, which generated a 20M+ jar file, but still it's giving the same error message
How do I pack this into a jar file and run with scala
command? thanks!