- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala project dependencies in Eclipse
Sat, 2009-12-05, 04:19
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
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