Answer
By default, Mozilla FireFox would enable the 'Block pop up window' setting, which would cause a JavaScript error in Java ADF print task since the print page is a 'pop up' window.
To solve this problem:
1) Go to Mozilla FireFox's 'Tools' menu.
2) Go to 'Content' tab.
3) Uncheck the 'Block pop-up windows' option.