Because Java and JavaScript are separate programming languages, they are implemented differently.
- To understand how to implement data collection code on Java, see the Appmeasurement for Java Implementation Guide(http://microsite.omniture.com/t2/help/en_US/sc/appmeasurement/java/oms_sc_appmeasure_java.pdf).
- To understand how to implement data collection code on JavaScript, see the Analytics Implementation Guide (http://microsite.omniture.com/t2/help/en_US/sc/implement/index.html#Adobe_Analytics_Implementation).
Let me know if it helps you. You can mark it as closed.
Thanks
Akhil