编译类时出错 [英] Error While Compiling Class

查看:62
本文介绍了编译类时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,我有一个java类文件,我不再拥有源文件。

我使用DJ JAVA Decompiler将其反转回来源,因为我必须编辑一些源代码。然而,当我尝试将源代码编译成新类时,我会遇到一些错误。如果有人能帮我解决这个问题,我将不胜感激。


我尝试使用NetBeans IDE,DJ JAVA Decompiler和javac.exe进行编译。都没能编译。他们都给出了同样的错误。


我已经包含了几个屏幕截图,让那些试图帮助我的人更加清楚。


提前谢谢。









解决方案

首先删除所有行,例如:

展开 | 选择 | Wrap | 行号


我完成了你说的话,现在我加载了更多的红线。



i完成你说的话,现在我加载了更多的红线。



该代码来自反编译器?真是太乱了。

为什么你说你必须再次使用反编译器?

你从哪里获得了你现在丢失的java文件?


hey guys i had a java class file that i no longer have the source file for.
i reversed it back to the source using DJ JAVA Decompiler as i had to edit some of the source. How ever when i try to compile the source into a new class i get some errors. I would greatly appreciate it if anyone could help me solve this delema.

I tried to compile using NetBeans IDE, DJ JAVA Decompiler and javac.exe. All failed to compile. They all give the same error.

I have included a couple of screen shots to make the situation a bit more clearer to those of you that are trying to help me.

Thanks in advance.









解决方案

First remove all the lines such as:

Expand|Select|Wrap|Line Numbers


i done what you said and now i have loads more red lines.


i done what you said and now i have loads more red lines.

That code came from a decompiler? What a mess.
Why did you say you had to use the decompiler again?
Where did you get the java file that you''ve now lost from?


这篇关于编译类时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆