简体   繁体   English

如何在Eclipse中编辑Java .class?

[英]How to edit java .class in eclipse?

I am very new to eclipse and I'm using it for java development. 我对Eclipse非常陌生,并将其用于Java开发。 I have no idea how I can be able to edit a class file. 我不知道如何编辑类文件。 Would I need a plugin to edit it? 我需要一个插件来编辑它吗? Also I've saw on other questions about how to edit a class file and they said to decompile it then save it as a jar and more. 我也看到了关于如何编辑类文件的其他问题,他们说要反编译然后将其另存为jar等。 I have no idea how to decompile it so I'm lost. 我不知道如何反编译它,所以我迷路了。 So if anyone could help I'll appreciate it. 因此,如果有人可以提供帮助,我将不胜感激。

Lengthy way use a Java Decompiler to view the Source code of the class file, change it and then recompile, http://jd.benow.ca/ 长途使用Java反编译器查看类文件的源代码,对其进行更改,然后重新编译, http://jd.benow.ca/

A little complicated but an interesting way is Java Bytecode Editor I personally prefer this solution for small changes. Java字节码编辑器是一种有点复杂但有趣的方法,我个人更喜欢这种解决方案,可以进行一些小的更改。 http://cs.ioc.ee/~ando/jbe/ . http://cs.ioc.ee/~ando/jbe/

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

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