java 未找到 javaee-endorsed-api-7.0
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47520464/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
javaee-endorsed-api-7.0 not found
提问by esteban fabian pati?o
Good morning the reason for my question is about an error that tells me neatbens javaee-endorsed-api-7.0 not foundI'm trying to find information on how to solve but I find information is 6.0 but it works for me can someone tell me how solve this problem or provide information where you can find information I am creating a web project with java web jee 7the version of the neatbens is 8.2
早上好,我的问题的原因是关于一个错误,它告诉我没有找到neatbens javaee-endorsed-api-7.0我正在尝试查找有关如何解决的信息,但我发现信息是 6.0 但它对我有用,有人可以告诉我如何解决这个问题或提供可以找到信息的信息 我正在用java web jee 7创建一个 web 项目,neatbens 的版本是 8.2
I am working an application web project
我正在工作一个应用程序网络项目
< 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>
error
错误
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: 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 /java/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 BUILD FAILED (total time: 0 seconds)
Blockquote
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/extra 文件夹中。在 IDE 中打开项目并确保 CopyLibs 库存在或手动设置属性。例如像这样: ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar BUILD FAILED(总时间:0 秒)
块引用
采纳答案by Khadhri Hamza
there is a lack of information in your post please add more details, else if you're working in a maven project add this block to your pom.xml:
您的帖子中缺少信息,请添加更多详细信息,否则如果您在 maven 项目中工作,请将此块添加到您的 pom.xml:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>7.0</version>
</dependency>
else download the jar file and add it to your classpath: http://www.java2s.com/Code/Jar/j/Downloadjavaeeendorsedapi70jar.htm
否则下载 jar 文件并将其添加到您的类路径:http: //www.java2s.com/Code/Jar/j/Downloadjavaeeendorsedapi70jar.htm
回答by Noman_ibrahim
I had the same problem. Just go to Tools--> Plugin-->Available Plugins---> Search for EJB and Ear and install it. The problem will be gone.
我有同样的问题。只需转到工具--> 插件--> 可用插件--> 搜索EJB 和Ear 并安装它。问题就会消失。