【问题标题】:Can't create project on Netbeans 8.2 with JDK 10无法使用 JDK 10 在 Netbeans 8.2 上创建项目
【发布时间】:2019-02-14 05:47:00
【问题描述】:

我正在尝试在 Ubuntu 上创建项目。它就是做不到。没有给我错误或其他什么,只是这个空白屏幕。

帮助/关于:

Product Version: NetBeans IDE 8.2 (Build 201609300101)
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
Java: 10.0.2; OpenJDK 64-Bit Server VM 10.0.2+13-Ubuntu-1ubuntu0.18.04.1
Runtime: OpenJDK Runtime Environment 10.0.2+13-Ubuntu-1ubuntu0.18.04.1
System: Linux version 4.15.0-33-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/q/.netbeans/8.2
Cache directory: /home/q/.cache/netbeans/8.2

我的安装步骤:

步骤 1- 我已经从 Oracle 安装了最新的 JDK:jdk-10.0.2_linux-x64_bin.tar.gz

步骤 2- 提取所有包移动文件

sudo mv jdk-10.0.2 /usr/lib/jvm

步骤 3- 像我们在 Windows 系统中所做的那样设置环境变量 更新您的 .bashrc 文件并添加以下行

export JAVA_HOME=/usr/lib/jvm/jdk-10.0.2
export PATH="$PATH:$JAVA_HOME/bin"

第四步-

chmod a+x netbeans-8.2-linux.sh

步骤 5-

./netbeans-8.2-linux.sh

第六步-在Netbeans安装中更改JDK目录

/usr/lib/jvm/jdk-10.0.2

步骤 7- 完成安装

我也看过以下问题。但我不想使用 JDK 8,它是 JDK 的一个古老版本。 Can't create project on Netbeans 8.2

当我将 Windows 10 迁移到 Ubuntu LTS 18.04 时,这个问题就开始了。

IDE 日志(stackoverflow 太长):https://shrib.com/#0waz1WhsX_zc_.FCtjex

【问题讨论】:

  • 使用 NetBeans 日志中的任何相关消息更新您的帖子。您可以使用 View > IDE Log 访问它,但如果由于您的问题无法访问它,您可以直接访问它。有关如何执行此操作的详细信息,请参阅NetBeans - where to find the IDE log?
  • 感谢您的建议。
  • 您的问题是由于 NetBeans 8.2 不支持 JDK10。如果要使用 NetBeans 8.2,请使用 JDK8 而不是 JDK10。但是,如果你想使用 JDK10,那么download and install Apache NetBeans 9.0。请注意,如果您愿意,可以安全地同时使用 NetBeans 8.2 和 NetBeans 9.0;无需卸载 NB 8.2 即可使用 NB 9.0。

标签: ubuntu netbeans java-10


【解决方案1】:

NetBeans IDE 8.2 不支持 JDK 10。转至 netbeans.apache.org 并安装最新版本的 NetBeans。

【讨论】:

  • 如何从netbeans.apache.org 下载最新的?它会导致 web 上的 shell 脚本。
猜你喜欢
  • 2018-09-14
  • 2018-03-10
  • 2020-02-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-11-14
  • 1970-01-01
  • 2020-08-10
相关资源
最近更新 更多