Java 如何使用 JDK 10 安装 Netbeans

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/49502600/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 03:01:43  来源:igfitidea点击:

How can I install Netbeans with JDK 10

javanetbeansinstalljava-homejava-10

提问by Ti?n Ph?m V?n

I try the command line with JavaHome:

我尝试使用 JavaHome 命令行:

netbeans-trunk-nightly-201803230002-javase-windows.exe --javahome "C:\Program Files\Java\jdk-10"

It should work, but I receive a message:

它应该可以工作,但我收到一条消息:

There is no JRE at the specified location C:\Program Files\Java\jdk-10

指定位置 C:\Program Files\Java\jdk-10 没有 JRE

enter image description here

在此处输入图片说明

Thanks!

谢谢!

采纳答案by skomisa

Updated on July 31, 2018 to strikethrough obsolete information, and add details on the official release of NetBeans 9.

2018 年 7 月 31 日更新以删除过时的信息,并添加有关 NetBeans 9 正式版本的详细信息。

You are downloading NetBeans from Oracle's site, so you should have no expectation that even the nightly dev build will work with Java 10.

您正在从 Oracle 的站点下载 NetBeans,因此您不应期望即使是夜间开发版本也能与 Java 10 一起使用。

NetBeans is currently being handed over to Apache from Oracle, and there is a development build available for download from Apache in the form of a zip file from here:

NetBeans 目前正从 Oracle 移交给 Apache ,并且可以从 Apache 以 zip 文件的形式从这里下载开发版本:

https://builds.apache.org/job/incubator-netbeans-linux/

https://builds.apache.org/job/incubator-netbeans-linux/

You can unzip that file on Linux, Mac or Windows and it will work with Java 10. Just be aware that it has not yet been formally released; that is a few weeks away.

您可以在 Linux、Mac 或 Windows 上解压缩该文件,它可以与 Java 10 一起使用。请注意,它尚未正式发布;那是几周之后。

You can check for bugs and/or report bugs here:

您可以在此处检查错误和/或报告错误:

https://issues.apache.org/jira/projects/NETBEANS

https://issues.apache.org/jira/projects/NETBEANS



UPDATE June 4, 2018

2018 年 6 月 4 日更新

Apache NetBeans 9.0 RC1 was released on May 28. The source and the binary can be downloaded as zip files from here:

https://netbeans.apache.org/download/nb90/nb90-rc1.html

Apache NetBeans 9.0 RC1 于 5 月 28 日发布。源代码和二进制文件可以从这里下载为 zip 文件:

https://netbeans.apache.org/download/nb90/nb90-rc1.html

UPDATE July 31, 2018

2018 年 7 月 31 日更新

Apache NetBeans 9.0 was released on July 29. The source and the binary can be downloaded as zip files from here:

Apache NetBeans 9.0 于 7 月 29 日发布。源代码和二进制文件可以从这里下载为 zip 文件:

https://netbeans.apache.org/download/nb90/nb90.html#_downloading

https://netbeans.apache.org/download/nb90/nb90.html#_downloading

!!! IMPORTANT NOTE !!!

!!!重要的提示 !!!

NetBeans 9 officiallyonly supports Java SE which means:

NetBeans 9正式只支持 Java SE,这意味着:

  • The Project Wizard is limited compared to NetBeans 8.2. For example, it does not even allow you to create a Java web application.
  • Most plugins are not available. The unzipped download of NetBeans does not even allow you to install plugins for Java EE, C/C++, Fortran, Grails, Groovy, PHP etc.
  • 与 NetBeans 8.2 相比,项目向导受到限制。例如,它甚至不允许您创建 Java Web 应用程序。
  • 大多数插件不可用。NetBeans 的解压下载甚至不允许您安装 Java EE、C/C++、Fortran、Grails、Groovy、PHP 等插件。

However, it is a simple process to enable that functionality (at your own risk). See the answer to How to get Netbeans 9 to deploy a valid webapp on Tomcatfor details.

但是,启用该功能是一个简单的过程(风险自负)。有关详细信息,请参阅如何让 Netbeans 9 在 Tomcat 上部署有效的 web 应用程序的答案。

For an explanation on why the plugins are not available by default see What's Happened to My Favorite NetBeans Plugins?.

有关默认情况下插件不可用的原因的解释,请参阅我最喜欢的 NetBeans 插件发生了什么情况.

回答by Imran Khan

For Windows you can install with NetBeans Extracted bundle :

对于 Windows,您可以使用 NetBeans Extracted bundle 进行安装:

Open cmd as Admin User

以管理员用户身份打开cmd

netbeans-XXX-windows.exe --extract

netbeans-XXX-windows.exe --extract

then run

然后运行

java -jar bundle.jar

java -jar bundle.jar

回答by ravikiran

Netbeans won't work properly with jdk version 10. Install jdk 8u/17l and everything should go well.

Netbeans 无法在 jdk 版本 10 上正常工作。安装 jdk 8u/17l,一切都会顺利。