I tried to extract .jar file, then the extracted folder contains only .class.. Can I edit this or see the code?
Lots thanks
Printable View
I tried to extract .jar file, then the extracted folder contains only .class.. Can I edit this or see the code?
Lots thanks
A jar file is a sort of zip archive, so you can use anything that will open these.
From the sound of your question you have extracted the contents of the jar file. If you want to decompile .class files you will need a decompiler like jad. Note: the resulting source files may not be valid, intelligible or legally able to be used.
A jar file is a sort of zip archive, so you can use anything that will open these.
From the sound of your question you have extracted the contents of the jar file. If you want to decompile .class files you will need a decompiler like jad. Note: the resulting source files may not be valid, intelligible or legally able to be used.
yep i used jad as decompiler, i already had the code but I can't edit the code.. Do you know how can I edit code?
I want to edit the code, do you know how to edit the code? it is not editable
OK, let's take this step by step.
- You have the class files extracted from the jar file, correct?
- You've decompiled the class files into Java files, correct?
- You now can edit the Java (text) files that you've just obtained from the step above.
What part of the steps above is not working? If you're still stuck, please provide us with plenty of useful detail so we don't have to slowly extract it.
I have the class files extracted from the jar file.
•You've decompiled the class files into Java files, wrong, I just have .class then I can only view the code of that .class in eclipse.
•You now can edit the Java (text) files that you've just obtained from the step above, wrong, I can't edit the .class because it is not editable.
In post number 4 above, you state:
Now I'm confused. Have you decompiled the class files with JAD or not?
To simplify this whole thing, why not ask for the source files from the folks who hold the legal rights to them? Then you don't have to muck with all this decompilation, and you'll know that what you're doing is perfectly legal.
Again, have you decompiled the class files as you noted in post #4 of this thread?
Edit: By your lack of reply I can only guess that you've lost interest in this subject. Well, goodnight.
Yes the only output when I used jad is .class.. it is not .java extension.. I can't edit the code using eclipse.
The only thing I have is jar. I don't have the source code.
just get JD-GUI decoder