package test;
public class HelloWorld {
public static final String JAVABRIDGE_PORT = "8080";
static final php.java.bridge.JavaBridgeRunner runner = php.java.bridge.JavaBridgeRunner
.getInstance(JAVABRIDGE_PORT);
public static void main(String args[]) throws Exception {
runner.waitFor();
}
}
<?php require_once("/path/to/Java.inc");
$hello_world = new java("test.HelloWorld");
?>
I know the code above can create a HelloWorld instance.
But what if the constructor of HelloWorld.java has some parameters?How to write the php code?