Friday, April 29, 2011

View PID along with port in netstat on Windows

netstat -ano

Adding Windows Environment Variables

Adding environment variable to windows at command line :
set ORACLE_HOME=C:\oc4j

Remember no space between = on either side. Also avoid names with spaces or use "" to habdle spaces.

Default Port for OC4j 8888

Hi the default port for OC4j is 8888 and can be found at oc4j\j2ee\home\config\default-web-site.xml
port="8888"
display-name="OC4J 10g (10.1.3) Default Web Site"

Sunday, April 24, 2011

Debugging Swing Applications

A cool trick to debug Swing Application. Often when debugging swing applications we require to know where the code for a particular textbox or drop down or any other swing component is. If this is a huge legacy application chances of finding the code easily are slim. This is where i would recommend you check out JDeveloper. Jdeveloper has this cool feature that when you launch a swing application in UI debug mode , you can click on the swing component in the running application and directly go to its code.

http://www.oracle.com/technetwork/developer-tools/jdev/ui-debuger-087839.html

Also if the whole application root panel is getting selected try changing your desktop resolution and relauch the application . It worked for me ;-).

Also check out
http://glasstools.kedges.com/ThePoint/Install