The first thing is to select JAVA Add-In and launch QTP. Next, you can record operations on the Java tree. If you look an issue while recording, you can choose Tools > Object Identification > Java, ...