简体   繁体   English

使用Eclipse编辑反编译的.jar文件

[英]Editing decompiled .jar files using Eclipse

I have a web application, precisely Cyclos SMS mobile banking software that I need to edit some of the .jar files. 我有一个Web应用程序,正是Cyclos SMS移动银行软件,我需要编辑一些.jar文件。 I imported it as a .war file into Eclipse, edited the .java file that I wanted to, run clean; 我将其作为.war文件导入到Eclipse中,编辑了想要的.java文件,运行干净; when I try to check the .jar file that needed to be updated with this change with jd-gui, I see that nothing has changed in it. 当我尝试使用jd-gui检查需要通过此更改进行更新的.jar文件时,我发现其中没有任何更改。

So I decided to edit the .jar file by decompiling it with jd-gui, and saving it to it source file; 因此,我决定通过使用jd-gui对其进行反编译来编辑.jar文件,并将其保存到源文件中。 edited the .java file I wanted to edit by importing it into Eclipse; 通过将要编辑的.java文件导入Eclipse,进行了编辑; exported it as a .war file and substituted .jar for .war. 将其导出为.war文件,并将.jar替换为.war。

I decided to view the changes made, but in the file I edited, I saw that it tried to call other classes in other .jar files of the whole Cyclos SMS web app but could not see them, so it only compiled with errors. 我决定查看所做的更改,但是在我编辑的文件中,我看到它试图在整个Cyclos SMS Web应用程序的其他.jar文件中调用其他类,但看不到它们,因此仅编译时出错。 How do I edit the whole Cyclos SMS web app, since it has many .jar files, and just working on one of them at a time and recompiling it alone without compiling the entire web app will always lead to errors. 我如何编辑整个Cyclos SMS Web应用程序,因为它具有许多.jar文件,并且一次只处理其中一个文件并单独重新编译而不编译整个Web应用程序总是会导致错误。

To simply put the question again, how to I edit .jar files in a big web app? 再次简单地提出问题,如何在大型Web应用程序中编辑.jar文件?

Try reading the Cyclos download page http://www.cyclos.org/download , looks like sources are available. 尝试阅读Cyclos下载页面http://www.cyclos.org/download ,看起来有可用的资源。 Try downloading the source code and modifying it 尝试下载源代码并进行修改

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

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