简体   繁体   English

EJB 找不到 Java 类库

[英]EJB cannot find Java class library

Hello i tried to develop a EJB Application using Java class library project that contains a remote interface for the session bean.您好,我尝试使用包含会话 bean 的远程接口的 Java 类库项目开发 EJB 应用程序。 I used this tutorial我用过这个教程

When i try to run my EJB i get an exception saying当我尝试运行我的 EJB 时,我收到一个异常说

java.lang.IllegalArgumentException: Specified library jar Remote.jar does not exist : C:\\Users\\Lakshitha\\Desktop\\New%20Jobhunt\\Remote\\dist\\Remote.jar java.lang.IllegalArgumentException: 指定的库 jar Remote.jar 不存在:C:\\Users\\Lakshitha\\Desktop\\New%20Jobhunt\\Remote\\dist\\Remote.jar

I checked the path in that folder and that jar file exist.我检查了该文件夹中的路径并且该 jar 文件存在。 Can anybody help?有人可以帮忙吗?

Make sure you dont have space and special character in path ,but it seems in your path C:\\Users\\Lakshitha\\Desktop\\New%20Jobhunt\\Remote\\dist\\Remote.jar确保路径中没有空格和特殊字符,但它似乎在你的路径C:\\Users\\Lakshitha\\Desktop\\New%20Jobhunt\\Remote\\dist\\Remote.jar

in your case New%20Jobhunt which may be some special UTF-8 characters or spaces.so please create a new dir or path without space or special character and try to execute your application again.在您的情况下New%20Jobhunt可能是一些特殊的 UTF-8 字符或空格。所以请创建一个没有空格或特殊字符的新目录或路径,然后尝试再次执行您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM