Java eclipse中不存在的jar资源 [英] Non-existent jar resources in Java eclipse

查看:162
本文介绍了Java eclipse中不存在的jar资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在eclipse中,当使用外部jar(特别是SuperCSV)时,我收到一条错误,内容为:变量引用不存在的资源。构建路径添加了Jar,并且在运行之前不会显示任何错误。此外,错误似乎只发生在使用java RMI时(注释掉RMI代码允许代码运行,只是没有实际功能)。

In eclipse, when using an external jar (SuperCSV in particular) I get an error which reads: "variable references non-existent resource". The build path has the Jar added to it and does not display any errors until run. Also the error seems to only occur when java RMI is used (commenting out the RMI code allows the code to run, just without actual functionality).

谷歌搜索还没有很有帮助,所以希望有人可以提供帮助。

Google searches have not been helpful, so hopefully someone here can help out.

推荐答案

您可能需要检查资源路径并确保相对工作空间location与您的项目所在的位置相同。否则,它可能无效。

You may want to check your resource path and make sure that the relative workspace location is the same place as where your project lives. Otherwise, it may not work.

这篇关于Java eclipse中不存在的jar资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆