To enable java with PHP you must configure & compile PHP with the --with-java option. There is a readme.txt in the source dist in the ext/java folder with more information on how to enable java.
Once it's enabled:
$myJavaDate = new Java("java.util.Date");
The Java() function creates new java objects.
G'luck,
Jack