musique Posted June 4, 2009 Share Posted June 4, 2009 Best way how to edit .Class file? Javac xxx.java FAIL.. Link to comment Share on other sites More sharing options...
0 kimsland Posted June 4, 2009 Share Posted June 4, 2009 DJ Java Decompiler 10-use trial http://members.fortunecity.com/neshkov/dj.html Link to comment Share on other sites More sharing options...
0 musique Posted June 4, 2009 Author Share Posted June 4, 2009 This Decompler can only convert - .Class to .Java.. I cant compile back to .class after that. how i said Javac fail with this .Class file.. :( Link to comment Share on other sites More sharing options...
0 Jexel Posted June 4, 2009 Share Posted June 4, 2009 fix up your syntax errors? Link to comment Share on other sites More sharing options...
0 musique Posted June 4, 2009 Author Share Posted June 4, 2009 Jexel how? Link to comment Share on other sites More sharing options...
0 tiagosilva29 Posted June 4, 2009 Share Posted June 4, 2009 Show us your code. Link to comment Share on other sites More sharing options...
0 Stephen Veteran Posted June 4, 2009 Veteran Share Posted June 4, 2009 This Decompler can only convert - .Class to .Java.. I cant compile back to .class after that. how i said Javac fail with this .Class file.. :( learn how java works javac changes a .java into a .class a decompiler will change from a .class to a .java, although the code wont be exactly the same, the comments may be missing etc after decompiling you just javac teh .java file to get the .class Link to comment Share on other sites More sharing options...
0 musique Posted June 4, 2009 Author Share Posted June 4, 2009 Dear Ste, what im doing: 1.move to desctop from .Jar pack this .Class file 2.with Dj javaD edit .Class file, now i have .Java 3.Put all files to C:\ and Set Path 4.in cmd - cd C:\ then Javac xxxxx.java 5.100 Errors 6.already tryed multi compile with imports, same Link to comment Share on other sites More sharing options...
0 Antaris Veteran Posted June 4, 2009 Veteran Share Posted June 4, 2009 You're not gonna get very far on here without telling us, what the errors are, and possibly some source code... Link to comment Share on other sites More sharing options...
0 musique Posted June 4, 2009 Author Share Posted June 4, 2009 import A; import B; import a; import b; import c; import d; import e; import f; import g; import h; import i; import j; import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.io.*; import java.net.*; import java.util.StringTokenizer; import k; import l; import m; import o; import p; import q; import u; import w; import x; import y; import z; Link to comment Share on other sites More sharing options...
0 Rudy Posted June 4, 2009 Share Posted June 4, 2009 it's because you need to have all the other dependencies (other .class files) to be able to compile it Link to comment Share on other sites More sharing options...
0 musique Posted June 4, 2009 Author Share Posted June 4, 2009 Rudy, but i tryed.. I decompile all .class imports in one place, and did multi compile, and same errors... Link to comment Share on other sites More sharing options...
0 _kane81 Posted June 5, 2009 Share Posted June 5, 2009 can you post your jar you are trying to modify ... also why are you modifying the class files? decompilers dont always work 100% - you have to fix up the source code manually sometimes, so you need to know what you are doing. Link to comment Share on other sites More sharing options...
Question
musique
Best way how to edit .Class file?
Javac xxx.java FAIL..
Link to comment
Share on other sites
12 answers to this question
Recommended Posts