I recently upgraded a Maven project to Java 7.
I use IntelliJ, and with Java 6, I could run my JUnit tests out of the IDE. This was convenient because it was a quick way to debug a failing test.
Since upgrading to 7 I get the following error when I try to Run a test:
scala: javac: invalid source release: 1.7
scala: Usage: javac <options> <source files>
scala: use -help for a list of possible options
I'm on OS X 10.8.5 and IntelliJ 12.1.6. Any help fixing these errors would be hugely appreciated.
javac -version
andjava -version
are showing1.7.0_45
for me from the console. – vpiTriumph