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

Scala project dependencies in Eclipse

1 reply
Lachlan Cotter
Joined: 2009-11-01,
User offline. Last seen 42 years 45 weeks ago.

Hi all,


I'm new to Scala and fairly new to Java as well.
I'm hoping somebody can shed some light on a problem I'm having trying to get a Scala project set up in Eclipse; as I've been beating my head against it for days.
Problem:
I have two Scala projects in an Eclipse workspace.
One of them contains my application; the other contains a library of Scala classes I am developing.
I want to be able to use the library classes in the application, so I set up the appropriate project dependancy in the project build path.
For a Java project, this works fine. But it doesn't work for my Scala project. Eclipse is apparently not realising the dependancies and is not building the required classes in the other project. Hence it results in build errors in the application and code completion doesn't work.
How can I force Eclipse to build the classes in the library project?

It must be something stupid that I am missing as this surely is a very common situation.

Any advise greatly appreciated.


Best,Lach


milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Scala project dependencies in Eclipse

On Sat, Dec 5, 2009 at 3:19 AM, Lachlan Cotter wrote:
> Any advise greatly appreciated.

What versions of Eclipse and the Scala tooling?

Could you post the .project and .classpath files for your two projects?

Cheers,

Miles

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