This the code that I have written in Scala.

```
object Main extends App {
    println("Hello World from Scala!")
}

```

This is my *build.sbt*.

```
name := "hello-world"
version := "1.0"
scalaVersion := "2.11.5"
mainClass := Some("Main")

```

This is the command that I have run to create the jar file.

```
sbt package

```

My problem is that a jar file named *hello-world\_2.11-1.0.jar* has been created at *target/scala-2.11*. But I cannot run the file. It is giving me an error saying *NoClassDefFoundError*.

What am I doing wrong?