With Quercus, PHP and Java developers can mix and match the respective capabilities of both languages. This tutorial explains how to install and configure Quercus:
http://www.developer.com/lang/php/article.php/3900701/Quercus-Bring-Javas-Power-to-Your-PHP-Development-and-Vice-Versa.htm
http://www.developer.com/lang/php/article.php/3900701/Quercus-Bring-Javas-Power-to-Your-PHP-Development-and-Vice-Versa.htm