|
From: <php...@li...> - 2008-02-21 23:08:38
|
I am running java 1.6 by the way
----------------------------------------
> To: php...@li...
> Date: Thu, 21 Feb 2008 16:53:18 -0400
> From: php...@li...
> Subject: [Php-java-bridge-users] Parsing error php/java brodje in java.inc
>
>
> 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();
> ?>
> _________________________________________________________________
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
_________________________________________________________________
|