|
From: <php...@li...> - 2009-04-30 08:15:44
|
You mean how to invoke the procedure with the name
de.iph.foo.MeinFoo#getNumber?
With java("de.iph.foo")->getNumber(), as usual, see how you have accessed
the System struct.
Apr 30, 2009 9:54 vorm. schrieb am <
php...@li...>:
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!!!
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|