Hi,<br />
<br />
I use the Chart API and the PHP/JavaBridge (php-java-bridge.sourceforge.net). I downloaded the ChartAPI demos from eclipse, and there I tested the StandaloneChart/src/StandaloneChartOSGi.java in the eclipse-environment. It works, I get my chart.<br />
<br />
Now, I assign the code to PHP. <br />
<br />
In the named above code there is at line 122 this snippet (java):<br />
<br />
//Returns a singleton instance of the Chart Engine<br />
ChartEngine ce = ChartEngine.instance(pf);<br />
//Returns a singleton instance of the Generator<br />
IGenerator gr = ce.getGenerator();<br />
<br />
<br />
In PHP the snipped is modified to:<br />
<br />
$ce = new Java("org.eclipse.birt.chart.api.ChartEngine"); <br />
$ce->instance($pf);<br />
$gr = $ce->getGenerator();<br />
<br />
<br />
I call the script in Browser and I get the following error:<br />
<br />
atal error: Uncaught
o:Exception]:"java.lang.Exception: Invoke failed: [[c:ChartEngine->getGenerator. Cause: java.lang.NoSuchMethodException: getGenerator(). Candidates: [] VM: <a href='mailto:' title='E-mail Link' class='bbc_email'>1.6.0_11@
http://java.sun.com</a>/" at: #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1043) #-4 php.java.bridge.Request.handleRequest(Request.java:409) #-3<br />
....<br />
<br />
<br />
Why the script is printing this error "NoSuchMethodException: getGenerator()"? In the used class "ChartEngine" there is a method named "getGenerator". (<a class='bbc_url' href='
http://www.birt-exchange.com/documentation/BIRT_220/ChartJavadoc/chart/api/org/eclipse/birt/chart/api/ChartEngine.html'>ChartEngine (BIRT Chart Engine API)</a>)<br />
<br />
I think I'm blind, I need help. Thank you.