简体   繁体   English

在Eclipse Luna上打开Java Imported Class时找不到源

[英]Source not found when open Java Imported Class on Eclipse Luna

I have some problem to open the class inside my project libraries on Eclipse Luna. 我在Eclipse Luna上的项目库中打开类时遇到一些问题。 For the beginning I have .war file of my web apps, I imported that .war files to Eclipse Luna and I could open index.jps files and other files under Web Content folder. 首先,我具有Web应用程序的.war文件,我将该.war文件导入到Eclipse Luna中,并且可以在Web Content文件夹下打开index.jps文件和其他文件。 But when I'm tried to open the engine class file I got Source not found. 但是,当我尝试打开引擎类文件时,找不到Source。 This is the screenshot of the errors. 这是错误的屏幕截图。

在此处输入图片说明

I'm new in Java code and with Eclipse. 我是Java代码和Eclipse的新手。 What's wrong with that errors and how to resolve that problems ? 这些错误有什么问题,以及如何解决这些问题? Please anybody knows could help me. 请任何人知道可以帮助我。 Thanks before. 之前谢谢。

WAR files don't usually contain the Java source code, just the compiled class files which is what you are seeing. WAR文件通常不包含Java源代码,而仅包含您所看到的已编译类文件。

If you have the Java source elsewhere you can use the 'Attach Source...' button shown in that screenshot to tell Eclipse about it. 如果其他地方有Java源代码,则可以使用该屏幕快照中显示的“附加源...”按钮来告诉Eclipse。

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

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