I downloaded Typesafe's Scala IDE bundle, and now I try to make it work with my project, which uses Scala 2.9.2 and Java 7. My problem is, Eclipse still compiles it with Java 6, and I get those nasty errors about javax.swing.JComboBox does not take type parametes
.
I'm launching eclipse with JAVA_HOME
pointing to my jdk7/jre
directory, and I added JRE 7 libs to the project. What am I doing wrong?
EDIT: For some reason, it seems that only Scala compiler compiles with Java 6 - if I use plain .java
file, it seems to be compiled with proper version. How could it be that Eclipse uses two different jdk's in one project?