I think this could help you: First, take out the Java source code for that particular class using DJ de-compiler and save it as '.java' file to a separate location with the same name & in the same package. For same package you will have to create empty folders as per the desired package. Make the change you want into the Java code using any text editor or IDE. If you use IDE like eclipse, set the classes and jars which are available in that application into the classpath. :) Find out the JDK by which the original class file was compiled. In case of jar file, the JDK version could be found in the MENIFEST file. You will have to compile your new code using the same JDK. Generate the classfile either by IDE or by javac command from the JDK used in creating original class file. Keep a backup of the original jar file. Open the original jar file into Winrar or Winzip such that it shows the complete folder structure of the jar file. Open the folder in which the original class file is present. Delete the original class file and insert the new generated class file in its place. Close the Winzip/ Winrar application. You are done! keep this new jar in place of the original jar and enjoy. ~UJ
UJ, the Power Builder.