The Scala Eclipse plugin is in development, so we can forgive little issues. One I keep running into is that programs sometimes can’t find themselves upon start. On the canonical hello-world program, I see:

Exception in thread “main” java.lang.NoClassDefFoundError: HelloWorld
Caused by: java.lang.ClassNotFoundException: HelloWorld

So far, the only explanation I’ve found from searching the web is that the metadata is horked, so the workspace must be nuked from orbit, that being the only way to be sure. I’ve tried it and it works, but this approach is hardly practical for production coding.


Bookmark and Share

Tags: ,

One Response to “Scala Eclipse Plugin: got class?”

  1. ancore says:

    After I changed the default output folder for the project to “classes” instead of “bin” it worked for me.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>