Scala hw.scala file isnt running after setting up scala properly?

[shyamlesh@gw01 ~]$ scala scalaworld/src/main/scala/
hw.scala target/
[shyamlesh@gw01 ~]$ scala scalaworld/src/main/scala/hw.scala
/home/shyamlesh/scalaworld/src/main/scala/hw.scala:1: error: not found: value hw
hw {
^
one error found

I have done all the setup properly but it still dosnt run

You have to paste the code

Why is it so ? what cud be the problem of this

Now it is working thanks alot