1

The .jar(mobile) application contains many class files I want to decompile a single class fiele from it, edit it and Recompile it. Which software will help in recompiling a single class file independently?

gnat
  • 6,213
  • 108
  • 53
  • 73
Sabin Jose
  • 658
  • 9
  • 19
  • have you checked answers to this question: http://stackoverflow.com/questions/272535/how-do-i-decompile-java-class-files? – gnat Jan 09 '12 at 10:30

2 Answers2

0

Most decompilers make a complete mess out of ME applications. One that gives me good results is Jadx. It's easy to use from here: http://www.javadecompilers.com/

Danny
  • 161
  • 1
  • 6
0

First you have to extract the files from the jar with a zip tool.

Then, as pointed by gnat, you can use a Java Decompiler as:

  • Java Decompiler
  • JAD

Then, you modify the .java and recompile it.

Finally you can use JAR tool to create a new jar, or even use a zip tool to replace the .class file in the original jar. Note that if the jar was signed in the first place, you have to make it from scratch and sign it.

pmoleri
  • 4,238
  • 1
  • 15
  • 25