Monday, 10 February 2014

How to decompile java class files to get Source Code ( .java )



Steps To Follow:
1.       Download the attached file from Here
2.       Extract the files. You will find two files namely Redme.txt and jad.exe
3.       Read the instruction provided in Readme.txt file (Optional)
4.       Double click on jad.exe to install the application
5.       Now open cmd ( Command Prompt ) and change the directory where your class file is kept
 (i.e., cd C:\Users\conacent\Documents\Oracle Reports\Decompile Class File)



6.        Now type this command and press Enter.
jad  –s java RTFTemplateGenerator.class   
Here Option -s <ext> allows to change output file extension.

OR, You can simply type jad   RTFTemplateGenerator.class  And the source file will be generated with .jad extension. You can rename it to change the extension of the file generated.
 




7.       You can find the generated source java file inside the same folder (Where class file has been kept.)


Monday, 12 August 2013

Oracle App Using Flash Message in Forms Personalization

Oracle App Using Flash Message in Forms Personalization
Responsibility: Application Developer
Navigation: Application > Messages
Create new message
Name: XX_TEST
Current Text Message: This is a test message for &USER_NAME
Save and close form.

Generate the message
Responsibility: Application Developer
Click on View > Requests in the menu to execute a concurrent program. Select Generate Messages program.


Click on Help > Diagnostics > Custom Code > Personalize
Create a new Personalization


Click on Actions
Sequence 10
Type: Builtin
Description: Retrieve the msg
Builtin Type: Execute a procedure
Argument: FND_MESSAGE.SET_NAME(‘XXCUST’, ‘XX_TEST’)


Sequence 11
Type: Builtin
Description: Set the USER token
Builtin Type: Execute a Procedure
Argument: fnd_message.set_token (‘USERNAME’, fnd_profile.value(‘USERNAME’))
Sequence 12
Type: Builtin
Description: Set the ORG token
Builtin Type: Execute a Procedure
Argument: fnd_message.set_token (‘ORG_ID’, fnd_profile.value(‘ORG_ID’))
Sequence 13
Type: Message
Description: Display the msg
Message Type: Show
Message Text: =FND_MESSAGE.GET