1, download the binary Javabridge.jar package, Java/java.inc library file,: http://php-java-bridge.sourceforge.net/pjb/download.php
2. Download the JDK package (360 software manager)
3. Run the command in the directory where the Javabridge.jar is located (CD first to the directory)
Java-jar Javabridge.jar servlet_local:8081 &
4. At the command line, enter Netstat-ano, and discover that a 8081 port has been turned on to start listening:
5. Place the Java.inc file in the Web directory and write the PHP test code test.php
<?php
Define ("Java_hosts", "127.0.0.1:8081");
Require_once "Java.inc"; PHP calls the Java interface, in the same directory as the script
Java_set_file_encoding ("UTF-8"); Set the Java encoding.
$props = Java ("Java.lang.System")->getproperties ();
$array = Java_values ($props);
Var_dump ($array);
PHP Tune Java interface