snoopgst
01-12-2008, 05:54 AM
This is what I've been able to do so far with example.jar....
1. extracted the jar
2. found the file I needed to modify A.class
3. I can edit the A.class file using DJ Java Decompiler
How do I save it back to a *.class format? dj java decompiler will only let me save it as a .java, jad, and js.
I need to be able to put the modified A.class file back into example.jar
Thanks.
liam_tmt7
01-12-2008, 07:25 AM
if you save the file as A.java, and then complie the java code, then the class file will be created for you by the complier.
hope this helps
Liam
Jamie Edwards
01-12-2008, 09:54 AM
This is what I've been able to do so far with example.jar....
1. extracted the jar
2. found the file I needed to modify A.class
3. I can edit the A.class file using DJ Java Decompiler
How do I save it back to a *.class format? dj java decompiler will only let me save it as a .java, jad, and js.
I need to be able to put the modified A.class file back into example.jar
Thanks.
You need to use a Java compiler. The standard Java package will include javac that you can use to compile Java files with.
snoopgst
01-12-2008, 06:05 PM
I downloaded JDK and i'm getting errors when I try to compile.
C:\Program Files\Java\jdk1.6.0_04\bin>javac A$9.java
A$9.java:80: <identifier> expected
int i = B.A.(B.A.f, A);
foobic
01-12-2008, 06:46 PM
Quick question: Do you have the author's permission to decompile and modify this program?
snoopgst
01-12-2008, 07:09 PM
Quick question: Do you have the author's permission to decompile and modify this program?
I would not be doing this if I could get support from the company. But it looks like they have gone out of business. They even canceled their domain so any emails get bounced back.
Daniel_G
01-12-2008, 08:13 PM
int i = B.A.(B.A.f, A);
That doesn't make any sense to me. What is it your trying to do?
stdunbar
01-14-2008, 11:41 AM
I downloaded JDK and i'm getting errors when I try to compile.
C:\Program Files\Java\jdk1.6.0_04\bin>javac A$9.java
A$9.java:80: <identifier> expected
int i = B.A.(B.A.f, A);
Jad and general decompiling of Java code isn't perfect. Jad hasn't been updated in a while so, depending on the version of Java that the code has been compiled with, it may or may not work.
Additionally, with method and variable names like this it looks like the code has also been run through some sort of obfuscation product too. That will make things much more difficult.
You'll need to manually fix the incorrect code and then try to compile it.