javaee-endorsed-api-7.0 未找到

问题描述 投票:0回答:3

早上好,我的问题的原因是一个错误,告诉我neatbens javaee-endorsed-api-7.0 not found我正在尝试查找有关如何解决的信息,但我发现信息是6.0,但它对我有用可以有人告诉我如何解决这个问题或提供信息,您可以在其中找到信息我正在使用 java web jee 7 创建一个 Web 项目,neatbens 的版本是 8.2

我正在开发一个应用程序网络项目

< 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&lt;version&gt;/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 bproject uild-impl.xml:797: 未设置 libs.CopyLibs.classpath 属性。 该属性必须指向 org-netbeans-modules-java-j2seproject-copylibstask.jar 文件是其一部分 NetBeans IDE 安装的目录,通常位于 /java/ant/extra 文件夹。 在 IDE 中打开项目并确保 CopyLibs 库 存在或手动设置该属性。例如这样: ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar 构建失败(总时间:0 秒)

块引用

java netbeans-8
3个回答
26
投票

我也有同样的问题。只需转到“工具”-->“插件”-->“可用插件”---> 搜索 EJB 和 Ear 并安装即可。问题就会消失。


4
投票

您的帖子中缺少信息,请添加更多详细信息,否则如果您在 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


0
投票

当我的团队有不同的 ide 版本或类似的东西时,我遇到这个问题。我在 Netbean 中通过单击“清理并构建”解决了这个问题,然后出现一个弹出窗口,然后单击“更新”。我的解决方案已经解决了。也许有用。

© www.soinside.com 2019 - 2024. All rights reserved.