Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试运行一个 j2ee 应用程序,而 eclipse 给我一个错误,说“jar 文件没有源附件”。这是此应用程序所依赖的 jar。我提取了 jar,只看到了类文件,但这应该足以运行这个应用程序,不是吗?
您很可能正在使用 JRE 而不是 JDK 来运行 Eclipse。解决此问题的一种方法是将 JDK 添加到 JRE 列表(Window / Preferences / Java / Installed JRE)。