Netbeans cannot find java.lang no jdk9

I am trying to install new Netbeans (8.1) on jdk 9. But netbeans cannot find java.lang. I checked the Java platform and saw the following: enter image description here

the following elements were added as β€œplatform sources”:

C:\Program Files\Java\jdk1.9.0\jrt-fs.jar
C:\Program Files\Java\jdk1.9.0\src.zip
C:\Program Files\Java\jdk1.9.0\javafx-src.zip

but I get this error and cannot make it work:

cannot access java.lang
  Fatal Error: Unable to find package java.lang in classpath or bootclasspath

Thank you in advance

+4
source share
2 answers

Update: Netbeans nightly builds now support JDK9! see http://wiki.netbeans.org/JDK9Support

So download: http://bits.netbeans.org/download/trunk/nightly/latest/

+1
source
  • Click the Project tab
  • .
  • "". .
  • / JDK9

, JDK8 My project properties

0

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


All Articles