Compile Errors Using JDK 9 - 167

I just downloaded jdk9 build 167 and wanted to continue testing the new modular system. I did this already with the previous build (I don’t remember which one). Now I installed 167 and uninstall the old JDK. When I try to compile now, I get an error message:

error: the file must be on the source path or on the repair path for the module

If I remove module-info.java (while in the src root path), it compiles in order. Anyone else have problems or am I missing something in the release notes?

+1
source share
1 answer

You should try IntelliJ IDEA 2017.2 EAP 172.2103.15 dated May 12, 2017, see: https://www.jetbrains.com/idea/nextversion/ . You can upgrade IntelliJ IDEA 2017.1.2 to IntelliJ IDEA 2017.2.2 EAP by selecting "Updates for: Early Access Programs."

+2
source

Source: https://habr.com/ru/post/1267361/


All Articles