问题描述
我的问题非常简单。
如何升级Netbeans 8.2以使用Jave EE 8?
My question is very simple.How do I upgrade Netbeans 8.2 to use Jave EE 8?
我安装了一个普通的NB 8.2和glassfish 5. Java 1.8并尝试使用java 9。
I have installed a plain NB 8.2 and glassfish 5. Java 1.8 and tried with java 9.
我已经安装了通过NB控制的GF 5服务器。当我创建一个新的Maven Web应用程序项目时,我可以选择Java EE 7作为运行时。
I have installed the GF 5 server to be controlled through NB. When I create a new Maven web application project i can choose Java EE 7 as runtime.
我已经下载了每晚的构建,试试是,但我看到相同的结果。
I have downloaded the nightly build too to try is, but I see the same result.
是否有烹饪书或其他描述如何将整个系统升级到最新版本的东西?
Is there a cook book or something that describes how to upgrade the entire system to the latest version?
我搜索了高低,没有任何结果。
I have searched high and low without any results.
我已经检查了Java EE 8教程,但它也没有对它进行expalin。
I have check the Java EE 8 tutorial but it dosn't expalin it either.
Kim
推荐答案
Netbeans目前不直接支持Java EE 8,但是你可以得到相同的通过手动设置项目依赖于Java EE 8 apis的结果。如果您通过将maven添加为pom.xml的依赖项来使用maven,则可以执行此操作:
Netbeans does not currently directly support Java EE 8, however you can get the same result by manually setting your project to depend on Java EE 8 apis. This can be done if you are using maven by adding it as a dependency to your pom.xml:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>
这篇关于将netbeans升级到JEE 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!