Hi all,
Tonight I tried giving Scala a spin. The initial "getting started" experience was less than pleasant.
I installed the Scala Eclipse plugin, created a "hello" project, switched to Scala perspective, created a "test" package, and created an object HelloWorld in it. When I tried to run this code by right-clicking the file by choosing "Run As -> Scala Application", the code throws up the error:
java.lang.NoClassDefFoundError: src/test/HelloWorld
Exception in thread "main"
I searched the web for some help, but eventually got to a bug reported by an outside contributor.
http://scala-webapps.epfl.ch/bugtracking/bugs/displayItem.do?id=1108 http://scala-webapps.epfl.ch/bugtracking/contribs/display.do?id=471The bug is marked as "not reproducible" but yet I was reproducing exactly the described behavior :(
After a bit of digging around, I figured out what is wrong - when one right clicks as chooses "Run as -> Scala application", the run configuration created is incorrect. The Scala Application Object is set to be src.test.HelloWorld; changing it to test.HelloWorld makes the code run fine.
Please fix this bug. I am posting this here because I could not comment on the bug tracking system.
Thanks,
Binil