Netbeans how to add a JavaEE version?

前端 未结 2 1924
轮回少年
轮回少年 2021-02-15 00:22

I recently downloaded Glassfish 5 which is JavaEE 8 compliant, my problem now is that when I try to create a Java Web Application for e.g. I don\'t see the JavaEE 8 version avai

2条回答
  •  粉色の甜心
    2021-02-15 00:50

    How do I add JavaEE 8 to the options ?

    NetBeans does not have a Java EE 8 compatible version, yet.

    NetBeans is like a glorified text editor with one million additional features, primarily code generators. What it can't autogenerate for you, you can just write yourself as if you were using Notepad like a hardcore programmer ;) Just pick Java EE 7 version, let Netbeans do its boring job of autogenerating the necessary files and then manually edit the location of XML schema resources and versions yourself in the desired deployment descriptor files.

    Servlet 4.0 web.xml:

    
    

    JSF 2.3 faces-config.xml:

    
    

提交回复
热议问题