views:

66

answers:

1

Hi,

I have installed latest scala ide plugin to eclipse (Version: 3.4.2). It seems installation is ok without any errors.

I am able to create a scala project and add a package, but i couldn't add scala object, at the time it shows "projectname" is not a Scala project error message in add object dialog.

I have googled and found it could be related to JDT Weaving not enabled in eclipse. I have verified, its enabled and running in my environment.

Below the screenshot of the error. alt text

I just started scala.. Can someone help me to resolve this problem?

Cheers

+5  A: 

The error message means your project is not recognize as a Scala one (as detailed in the scala.tools.eclipse.wizards.AbstractNewElementWizardPage.scala class.
But adding "Scala nature" to your project, as suggested by Alexey Romanov in the comments, might not be enough in this case.

The requirements mentioned in scala-ide.org clearly include:

So could you try with a more recent Eclipse version?
See Requirements and Installation, and then the turorial:

alt text

As mentioned, note the 'S' in the Scala project icon.

VonC
Hi Vonc, i have installed the scala plugin for eclipse galileo in my VM.... it works great without any problems... but earlier i installed in eclipse galileo ganymede...
Ramesh Vel
@Ramesh: "in eclipse galileo ganymede"? I don't recall of such an eclipse. Eclipse Ganymede is 3.4.x, Eclipse Galileo is 3.5.x, but there is no such think as an "eclipse galileo ganymede".
VonC
@Vonc, thats a typo :(.. i mean eclipse galileo
Ramesh Vel