Version 7, last updated by skyluc at Nov 01 12:16 2011 UTC

Frequently asked questions.

1 . I have an existing Java project and I wish to add Scala files. How do I convince Eclipse to work with Scala?

Right click on the project in the Package Explorer view, and in the popup menu select
Configure -> Add Scala Nature.

2 . I am running out of stack space in Eclipse.  How do I increase the stack size?

If you are starting Eclipse from the command line, you can supply vm args, including stack size, like this:

eclipse [normal arguments] -vmargs -Xss8M [more VM args]

You can also edit eclipse.ini in the Eclipse installation/application. There, lines that look like

-vmargs
-Xms40m
-Xmx256m

can be replaced with something like (for an 8 megabyte stack, 700MB initial heap, 2GB maximum heap) 

-vmargs
-Xss8m
-Xms700m
-Xmx2048m

3 . I am using m2eclipse and Scala IDE complains about 'no scala library...' or 'More than one scala library...'

In Scala IDE 2.0, a classpath validator has been added and it reports problem with project imported using m2eclipse. The m2eclipse-scala project was created to, among other things, fix these classpath problems. It is available here.

See also Setup