use scala 2.8.1?

81 views
Skip to first unread message

Justin

unread,
Jan 24, 2012, 12:17:14 PM1/24/12
to Scala IDE User
Hello,

I am trying to use a scala project that is currently being developed
against scala 2.8.1, and I'd like my dev environment in Eclipse (3.7)
to be configured similarly. However, I can't seem to figure out a way
to change the Scala library used by the Scala IDE plugin. Is this
possible?

FWIW, I'm on Ubuntu 11.10, and have scala 2.8.1 installed in /usr/
share/scala (and the scala/lib folder symlinked to /usr/share/java/
scala). Also, I already tried removing the Scala 2.9.1 library from
the project build path and manually adding my 2.8.1 jars from /usr/
share/java/scala to the build path, but that just gives me:

"The version of scala library found in the build path is incompatible
with the one provided by scala IDE: 2.8.1.final. Expected:
2.9.1.final. Please replace the scala library with the scala container
or a compatible scala library jar."

Thanks,
Justin

Tony Sloane

unread,
Feb 3, 2012, 4:30:37 AM2/3/12
to scala-i...@googlegroups.com

It would appear that you have the 2.9.x version of the Scala IDE plugin installed. I think to use 2.8.x with Scala IDE you need to use a different version of the plugin. See near the end of this page:

http://scala-ide.org/download/current.html

(Also note that Eclipse 3.7 is not officially supported yet so some things may not work.)

regards,
Tony

iulian dragos

unread,
Feb 6, 2012, 5:56:52 AM2/6/12
to scala-i...@googlegroups.com
Tony is right. The IDE ships with its own compiler and library, and while you can change the Scala library of your project with another one that has the same *major* version, it's better to stay with the one that ships with the IDE. We guarantee that they are binary compatible (2.9 ships with 2.9.1 anyway).

iulian
 
(Also note that Eclipse 3.7 is not officially supported yet so some things may not work.)

regards,
Tony




--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
Reply all
Reply to author
Forward
0 new messages