|
From: <php...@li...> - 2008-02-21 20:53:20
|
I followed the instructions in INSTALL.STANDALONE documentation. When i Compile my file this is the error i get in eclipse
Parsing Error: http://localhost:8081/JavaBridge/java/Java.inc line 54 - syntax error, unexpected T_NEW
My java class
import java.util.*;
import java.text.*;
import java.math.*;
public class Hello {
public static final String JAVABRIDGE_PORT="8081";
static final php.java.bridge.JavaBridgeRunner runner =
php.java.bridge.JavaBridgeRunner.getRequiredInstance(JAVABRIDGE_PORT);
public Hello(){
SayHello();
}
public static void main(String[] args) {
Hello hell = new Hello();
//do nothing - this will keep us from getting a compile error
}
public void SayHello() {
Date today = new Date();
System.out.println( "Hello Geek here is the java date and time: " + today);
}
}
My php file
SayHello();
?>
_________________________________________________________________
|