- If you haven't already done so, install Eclipse. You can do this from your * nix repositories, or from the Eclipse download page. The Scala IDE for Eclipse claims that either Eclipse IDE for Java Developers or Eclipse Classic will suffice.
- Install the Scala distribution. Once again, if possible grab this from your repositories, if not then from the Scala download page. I'd recommend the IzPack installer; it seems to work on all systems I've used it on.
- Install the Scala IDE for Eclipse. Head to the Scala IDE for Eclipse download page and follow the instructions to install it for Scala 2.9.x.
- Download and extract CSO. Head to Bernard Sufrin's CSO files and download
cso.jar
, andcso-sources-scala2.9.0.tgz
. Choose somewhere to put them - if you're root and on * nix,/usr/share/java
is a good place. Putcso.jar
in there, and extract thesrc/
folder from the sources archive. - Set up CSO as a User Library in Eclipse. In Eclipse, open the User Libraries window (Window > Preferences > Java > Build Path > User Libraries), hit 'New...' and name it
CSO
. Press 'Add Jars...' and choosecso.jar
from where you saved it. Choose 'Source attachment' and press 'Edit...', then 'External Folder' and choose thesrc/
folder you extracted. Press 'OK'. - Create a new Scala project: File > New > Project... > Scala Wizards > Scala Project. If possible, set the JRE version to 1.6, as the Scala IDE for Eclipse page reports "We recommend the latest 1.6.x version, there have been issues reported when using Eclipse and Java 7.".
- Add CSO to the project build path. Project > Properties > Java Build Path > Libraries > Add Library... > User Library > CSO > Finish
You should be ready to go! Maybe. Who knows?
(Of course, in your code you should
import ox.CSO._
)