简体   繁体   English

Java eclipse中不存在的jar资源

[英]Non-existent jar resources in Java eclipse

In eclipse, when using an external jar (SuperCSV in particular) I get an error which reads: "variable references non-existent resource". 在Eclipse中,当使用外部jar(尤其是SuperCSV)时,出现错误消息:“变量引用了不存在的资源”。 The build path has the Jar added to it and does not display any errors until run. 构建路径中已添加Jar,并且在运行之前不会显示任何错误。 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). 同样,该错误似乎仅在使用Java RMI时发生(注释掉RMI代码允许代码运行,只是没有实际功能)。

Google searches have not been helpful, so hopefully someone here can help out. Google搜索没有帮助,因此希望这里的人可以提供帮助。

You'll need to modify your ant classpath by going to "Window->References->Ant->Runtime->Classpath". 您需要通过转到“窗口->参考->蚂蚁->运行时->类路径”来修改您的蚂蚁类路径。 Adding or removing the jar you have problem with here. 添加或删除您在此处遇到问题的罐子。

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. 否则,它可能无法工作。

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

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