Now for step 3 of my 'calling Java from Delphi' project...
So far, everything seems to work.
Var
Cls: JClass;
Mid: JMethodID;
ExampleFO2PDF: JObject;
//Construct ExampleFO2PDF object
ExampleFO2PDF := CreateJavaObject(FJNIEnv, 'embedding/ExampleFO2PDF', Cls);
//Locate the 'convertFO2PDF' method
Mid := FJNIEnv.GetMethodID(Cls, 'convertFO2PDF',
'(Ljava/io/File;Ljava/io/File;)V');
After this, I wish to actually call the method from Delphi:
// Call the method
FJNIEnv.CallObjectMethod(...);
In ExampleFO2PDF.java, it says
public void convertFO2PDF(File fo, File pdf) throws IOException, FOPException {
What, now, is the type of the parameters that I should pass with
FJNIEnv.CallObjectMethod()? I couldn't find any examples of this.
I tried some Delphi file types but they didn't work.
Regards,
Arjan Bokx
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]