package javax.ejb does not exist inspite of jar file in classpath

徘徊边缘 提交于 2019-12-05 12:47:04

I faced the same problem .

You need to add javaee5.jar to you class path .

For example I imported an ejb project and then realised I was using a version of Netbeans that did not have the EJB & EAR support . So i downloaded the plugin . After doing that the javaee5.jar was present at C:\Users\sjauhar\AppData\Roaming\NetBeans\7.3.1\modules\ext . Added it to my project and the error went away .

The classpath must contain the full path to each jar file you want included, not just the folder in which your jar files exist. So, for example, add

C:\wls1036_dev\modules\javax.ejb.jar

to your classpath

You should ideally compile using the JDK provided by WebLogic, rather than using the J2SE bin and libs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!