On Tue, Aug 19, 2008 at 9:18 AM, Normen Müller
<
normen.mueller@...> wrote:
> I have just installed the nightly build of the eclipse plug-in. I haven't
> changed anything on my projects, but none of those runs anymore. All I get
> is:
> Exception in thread "main" java.lang.NoClassDefFoundError:
>
> When I check for *.class there are none. So what else can I do...
There have been a few changes in the run up to the release. If you
follow the steps below you should be OK,
* The .project file should be of the following form,
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Project name</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>ch.epfl.lamp.sdt.core.scalabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>ch.epfl.lamp.sdt.core.scalanature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Note that there should *not* be a buildCommand entry for the Eclipse
Java builder.
* The .classpath should be of the following form,
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con"
path="ch.epfl.lamp.sdt.launching.SCALA_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Note the SCALA_CONTAINER entry and that it preceeds the JRE_CONTAINER entry.
* The per-project properties should be set as follows,
Right click on the project in the Package explorer, select "Properties
=> Java Compiler => Building". Ensure that "Enable project specific
settings" is checked, then uncheck "Scrub output folders when cleaning
projects" and add "*.scala" to the "Filtered resources" field.
* If you find that you have .scala files appearing in you output
folder delete it.
* Do a clean build of your project.
Cheers,
Miles