【问题标题】:javaee-endorsed-api-7.0 not foundjavaee-endorsed-api-7.0 未找到
【发布时间】:2017-11-27 21:54:44
【问题描述】:

早上好,我提出问题的原因是关于一个错误,它告诉我 netabens 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\nbproject\build-impl.xml:797:未设置 libs.CopyLibs.classpath 属性。 该属性必须指向 org-netbeans-modules-java-j2seproject-copylibstask.jar 文件,它是一部分 NetBeans IDE 安装,通常位于 /java/ant/额外文件夹。 在 IDE 中打开项目并确保 CopyLibs 库 存在或手动设置属性。例如像这样: ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar 构建失败(总时间:0 秒)

块引用

【问题讨论】:

标签: java netbeans-8


【解决方案1】:

我遇到了同样的问题。只需转到工具--> 插件--> 可用插件--> 搜索 EJB 和 Ear 并安装它。问题就解决了。

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-24
      • 1970-01-01
      • 2013-05-23
      • 2015-08-05
      • 2013-10-12
      • 2012-01-20
      • 2018-08-19
      相关资源
      最近更新 更多