I’ll be following the Functional Programming Principles in Scala course offered by Coursera this Autumn. To get you started the good folks behind the course have provided lots of info on how to install necessary software etc. However, I ran into a problem, and it’s subsequent solution, that I would like to document here.
I’ll be following the course a bit from here and a bit from there. Sometimes on my mac, sometimes on a linux laptop, sometimes on a windows machine. Anyway, I have my course files in my Dropbox and pick them up from there as needed on the various OSes. Problem was when opening the my scala projects in eclipse in OSX after compiling them under Windows, I got a cryptic “error in scala compiler null” and was unable to clean and (re)compile my scala programs. I realised that I was running JDK 6 on my mac and JDK 7 on anything else, so I figured that might have something to do with it.
After following Mary Hamlin’s answer here: http://stackoverflow.com/questions/7669899/how-to-run-eclipse-indigo-on-jdk-1-7-on-osx my problems seems to be over. Thanks Mary!
To the functional programming mobile!