• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Java: decompiled, changed class file, errors when compiling

CalvinHobbes

Diamond Member
I have a .jar file that is a small java program. I decompiled it, made changes, saved it as a .java file and then tried to compile it. I get a bunch of errors when trying to compile the .java file. The errors are all about different lines of code. The changes I made wouldn't have caused any issues like this.

I'm using DJ Java Complier and Java JDK 1.60.

Is there a better way to do this?
 
what exactly did you change and why do you think the changes you made wouldnt cause your compiling errors?

Without knowing what all the class files where and what changes you made to them, it is real hard what to tell you went wrong. There are gotcha's in java such as if you changed the file name, even just the way it was capitalized that will not compile.
 
The compiler probably cannot find the referenced classes. If that is the case, you will need to modify the classpath to point to them.
 
Thanks for the replies.

Mundane, that may be the issue. There is a file called classpath at the root. I'll look into that.

Just so I understand. In order to compile anything that is referenced (like a variable) in the file needs to resolve back to a .class file that contains the info?

Can you tell I've never programmed anything before.
 
Back
Top