|
From: <php...@li...> - 2009-04-30 07:53:34
|
Good morning,
I have 2 Classes for example:
1.
package de.iph.foo;
public class MeinFoo {
public static int getNumber(){
return 42;
}
}
2.
package com.fara;
import de.iph.foo.MeinFoo;
public class Web {
public String HalloWelt(){
return "Hallo Welt";
}
MeinFoo mf = new MeinFoo();
int n = mf.getNumber();
}
How can I solve the Problem with the constructor in php-java-bridge? (can not be called)
<?php
require_once("http://localhost:808o/World/java/Java.inc");
$System = java("java.lang.System");
$myObj = new java("com.fara.Web");
echo $myObj->HalloWelt();
//echo $myObj->getNumber(); ???
?>
Thanks i n advance!!!
|