简体   繁体   English

在eclipse中找不到Java源代码

[英]Java source code can not be found in eclipse

In an xpages application a javav source code was added to the Local folder within the Lotus nsf file. 在xpages应用程序中,javav源代码已添加到Lotus nsf文件中的Local文件夹中。 Now can not be seen, and can not be found with search. 现在看不到了,用搜索找不到。 The code still woking, but it is not possible to modify it. 代码仍然在调用,但无法修改它。 How to get the source code back? 如何获取源代码?

The name "Local" is short for "Never-put-your-own-stuff-here-because-we-remove-it-without-warning-and-it-is-actually-not-inside-the-nsf". 名称“Local”是“Never-put-your-own-stuff-here-because-because-we-remove-it-without-warning-and-it-is-is-not-the-nsf”的缩写。 But that name was too long even for IBM naming standards, so we call it local. 但即使对于IBM命名标准,这个名称太长了,所以我们称之为本地名称。

Matter of fact: the NSF does not contain a local folder . 事项的事实:美国国家科学基金会包含本地文件夹 It is on that one machine where you added in in your workspace directory (if you are lucky). 它位于您在工作区目录中添加的一台计算机上(如果您很幸运)。 On build the code is compiled and the class file stored into the NSF (this is why it works). 在构建时,代码被编译并且类文件存储在NSF中(这就是它工作的原因)。

You have to go back to the original machine and hope the java file is still there (or in the machines Trash bin). 你必须回到原来的机器,并希望java文件仍然存在(或在机器垃圾箱)。 Create a separate source folder under web-inf and add it to the classpath (or in 8.5.3++ use the Java Design element). 在web-inf下创建一个单独的源文件夹并将其添加到类路径中(或在8.5.3 ++中使用Java Design元素)。

If that is gone: use a decompiler 如果那样消失:使用反编译器

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

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