PHP / Java Integration Java &reftitle.intro; There are two possible ways to bridge PHP and Java: you can either integrate PHP into a Java Servlet environment, which is the more stable and efficient solution, or integrate Java support into PHP. The former is provided by a SAPI module that interfaces with the Servlet server, the latter by this Java extension. The Java extension provides a simple and effective means for creating and invoking methods on Java objects from PHP. The JVM is created using JNI, and everything runs in-process. &warn.experimental; &reference.java.setup; &reference.java.constants; &reference.java.servlet; &reference.java.examples; &reference.java.reference;