Ubuntu 18.04/Netbeans 10.0致命错误:在类路径或引导类路径中找不到包java.lang [英] Ubuntu 18.04/Netbeans 10.0 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
问题描述
首先,我在带有netbeans 10.0的Ubuntu 18.04上工作并打开JDK11.当我创建一个基本的新项目时,将直接触发警报.
First, I work on Ubuntu 18.04 with netbeans 10.0 and open JDK 11. When I create a basic new project, alerts directly triggered.
cannot access java.lang
Fatal Error: Unable to find package java.lang in classpath or
bootclasspath
我试图卸载/安装netbeans和openJKD 11,但没有任何效果.
I tried to uninstall/install netbeans and openJKD 11 but nothing work.
我看了很多关于此类问题的论坛讨论,但都无济于事. 有关信息,
I looked on lots of forums discussions with this kind of problem but nothing work. For information,
xxx:~$java -version
给予
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)
我不知道我在想什么,如果有人可以帮助我...
i don't know what i'm missing, if someone can help me...
推荐答案
您具有NetBeans 10 版本,但您的JDK是 11 版本.因此,请尝试使用NetBeans 11 版本...或下载/安装JDK 10 (与NetBeans相同).
You have NetBeans 10 version, but your JDK is version 11. So try use NetBeans 11 version... or download/install JDK 10 (the same as NetBeans).
这篇关于Ubuntu 18.04/Netbeans 10.0致命错误:在类路径或引导类路径中找不到包java.lang的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!