Using Java Decompiler(JD) with Oracle Jdeveloper (Jdev)


  Java Decompiler(JD) with Oracle Jdeveloper (Jdev)



Java Decompiler is a good tool to check the code, when we just have complied code.  There are ways by which you can check the code, which is been in form of jar with you.  

Let say you got ADF Jar file for a project and now want to check, what is the code inside of an entity object IMpl or how this code is structured.  There are some simple steps to it.

1. Create an ADF application with mode and UI project. If you have more project, try to keep the name of the model same as jar. Here I have two jars to check. employee Model.jar and employeeUI.jar.






2. Now go to you jars and then unzip these jars using the unzip or 7 zip prog.



3. Once you done with the unzip then place these directries under the application and project you have created. Please have model code paste under src directory only.



4. Refresh the application now and you will be able to see new files under the project.

Now its time to configure the JD to jdeveloper.


1. download the JD windows exe from the http://jd.benow.ca/. Please keep it in a directory accessible to you. I recommend a new directory under your oracle_home for jdev.


 2. Now go to Tools and select for Tools --> External tools. which will open the below popup, click next.



3.  Now put the argument as given below, exe file location has to change based on the file location of the JD you have.



4.  Now choose where you want to see the tool.  once done say next.


5. Now no need to change in any of the window just see preview and say ok and tool will be available for you.

  


6. Now click on any file and jd icon to open that class file in the JD. Normally it shows all the code except the encrypted code. 




Now tool is working.

Comments

Popular posts from this blog

Executing a method bindings In Bean method.

Current Date in ADF.