This page is no longer maintained — Please continue to the home page at www.scala-lang.org

using scala in an existing java project with eclipse 3.5

1 reply
merlin-hst
Joined: 2009-10-14,
User offline. Last seen 2 years 30 weeks ago.

Hello,

I would like to 'convert' an existing java project to a scala project with eclipse 3.5. After playing around a while it seems to be not possible, right ? I have to create a new scala project with the wizard and could than mix java and scala classes together in that project. So what I would like to know is - is it possible to create scala classes in an exisiting java project ? Even if I 'patch' the eclipse .classpath and .project files manually I always get the same error as described here :

http://www.nabble.com/-scala-tools--Scala-IDE-errors-to25762989.html.

And JDT weaving is eanbled, my eclipse installation isn't read-only and I've used a clean installation with no other plugins.

Lothar
______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: using scala in an existing java project with eclipse 3.5

On Fri, Oct 16, 2009 at 2:56 PM, Lothar Krenzien wrote:
> I would like to 'convert' an existing java project to a scala project with eclipse 3.5.

Right click on your Java project in the Project Explorer, then Scala
=> Add Scala Nature.

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland