Compilation in IntelliJ IDEA

How do you compile JNode inside IntelliJ IDEA ?

With IntelliJ IDEA Community Edition 13 running in jdk 7 and JNode projects configured to use JDK 6, I have errors like this one :
java: /home/fabien/projets/jnode/jnode/core/src/openjdk/vm/sun/font/NativeFontManager.java:230: sun.font.FontManager.FontConfigInfo has private access in sun.font.FontManager

1. In Project structure, add

1. In Project structure, add a new jdk that point to a correct directory (1.6 or 1.7). I called it "dummy".
2. Next, remove all the content of "classpath".
3. In "Project", select the "dummy" jdk.

After that, it should compile.

Fabien L.