To include Java support in your PHP build you must add the option --with-java[ =DIR] where DIR points to the base install directory of your JDK.
?php / / crée une instance de Java class java.lang.System en PHP $system = new Java( "java.lang.System"); / / accède aux propriétés print "Java version=".$system - getProperty("java.version"). "br"; print "Java vendor= ".$system - getProperty("java.vendor")." br "; print "OS=".$system - getProperty("os.name")." ". $system - getProperty("os.version")." on ". $system - getProperty("os.arch")." br "; / / Exemple avec java.util.Date $formatter = new Java("java.text.SimpleDateFormat", "EEEE, MMMM dd, yyyy 'at 'h:mm:ss a zzzz"); print $formatter - format(new Java("java.util.Date"));?