Welcome to the GSM-Forum forums. |
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.
Registration is fast, simple and absolutely free so please - Click to REGISTER!
If you have any problems with the registration process or your account login, please contact contact us .
|GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.|
| ||LinkBack||Thread Tools||Display Modes|
|09-16-2007, 13:59||#1 (permalink)|
Join Date: Nov 2004
Thanks Meter: 2
How to decompile end recompile jar files???
|10-12-2007, 21:01||#2 (permalink)|
Join Date: Nov 2004
Thanks Meter: 2
JAVA REVERSE ENGINEERING: Decompiling and Recompiling Jar Files
1. DJ Java Decompiler- Program which decompiles jar or class files to source code in text format *.java. More info at site:
With JADMaker make a .jad file from .jar file. Drag and drop the jar file over the JADMaker icon.
From Java ME SDK menu open WTK2>KToolbar. You can use different SDK'S or more professional tools like eclipse or Netbeans IDE's.
From KToolbar File menu select Create Project from JAD/JAR File and select the .jad file created at first step.
Now we have created the folders. Where?
Inside C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\ apps Folder.
We can make without creating a project this work, too.
Open with 1. tool java decompiler the .jar file. Archiver shows all the files within jar archive file. Select all with mouse and click Decompile button. Select Folder to save the files. The file structure must be the same as in jar file. Answer the question asked yes. Now inside the folder there are some class files and some jad files. Don't change the folder structure. .jad dosyaları files are source codes of class files. Change the .jad extensions to .java. You can delete class files. Now copy this folder inside the apps folder mentioned at 2nd step.
Now our project is ready. But icons and other files missing. Include them with opening the jar file with winrar. The folder structure must be the same.
We have source codes. So we can make changes. Some codes won't be decompiled. You can see some strange codes, but it is easy to guess the right code. Select Build from KToolbar menu. If we have made mistakes, the compiling will be aborted and errors will be shon under.
If compiling succeeded, when we select Run command, the application will be opened in emulator. Some applications wont run in the emulator or on phone.
Now it's time to make jar file. From KTollbar Project menu select Create Package.
Inside the C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\ apps folder of our project jar and jar files are ready inside the bin folder. You van use them now.
If you use a program, buy the program. This tutorial is written to show the weakness of jar files and to help the programmers.
|thread||Thread Starter||Forum||Replies||Last Post|
|How to decompile end recompile jar files???||engart||Java, iOS, Android, Symbian development||1||09-18-2007 10:40|
|how to istall Jad or Jar files onto xda o2 iq||mazz4||Java, iOS, Android, Symbian development||0||05-21-2007 01:19|
|How to Run .jad and .jar files on LG KG200?||umarriaz2k7||LG||0||02-26-2007 10:56|
|how to use jad & jar file?||bawa||Nokia Multimedia||11||09-12-2003 11:40|
|How to decompile an S45 or SL45 *.bin file?||ntc_silver||Siemens-Benq RingTones and WallPapers||4||01-15-2003 11:01|