早上好,我问这个问题的原因是关于一个错误,它告诉我neatbens javaee认可的-api-7.0找不到我正在尝试查找有关如何解决的信息,但我找到的信息是6.0,但它对我有效。有人能告诉我如何解决这个问题或提供在哪里可以找到信息我正在用java web jee 7创建web项目吗? neatbens的版本是8.2。
我正在做一个应用程序web项目
< target name = "-init-taskdefs" >
<
fail unless = "libs.CopyLibs.classpath" >
The libs.CopyLibs.classpath property is not set up.
This property must point to
org - netbeans - modules - java - j2seproject - copylibstask.jar file which is part of NetBeans IDE installation and is usually located at &
lt;
netbeans_installation & gt;
/java<version>/ant / extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually.For example like this:
ant - Dlibs.CopyLibs.classpath = a / path / to / org - netbeans - modules - java - j2seproject - copylibstask.jar <
/fail> <
taskdef classpath = "${libs.CopyLibs.classpath}"
resource = "org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml" / >
<
/target>
错误
ant -f "G:\Mis Documentos\NetBeansProjects\WebServiceSicb“-Dnb.internal.action.name=build -DforceRedeploy=false "-Dbrowser.context=G:\Mis Documentos\NetBeansProjects\WebServiceSicb”dist G:\Mis Documentos\NetBeansProjects\WebServiceSicb\nbproject\build-impl.xml:797:
libs.CopyLibs.classpath属性未设置。此属性必须指向org-netbeans-modules-java-j2seproject-copylibstask.jar文件,该文件是NetBeans集成开发环境安装的一部分,通常位于/java/ant/extra文件夹中。在集成开发环境中打开项目并确保CopyLibs库存在,或者手动设置该属性。例如: ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar构建失败(总时间:0秒)
区块引用
发布于 2017-11-28 06:19:06
您的帖子中缺少信息,请添加更多细节,否则,如果您正在maven项目中工作,请将此块添加到您的pom.xml中:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>7.0</version>
</dependency>
否则,下载jar文件并将其添加到类路径中:http://www.java2s.com/Code/Jar/j/Downloadjavaeeendorsedapi70jar.htm
发布于 2018-10-22 01:47:51
我也有同样的问题。只需转到Tools--> Plugin-->Available Plugins->搜索EJB和Ear并安装它。这个问题就会消失。
https://stackoverflow.com/questions/47520464
复制相似问题