C
ckirchho
Hallo,
I am developing with Delphi 6 and would liek to use the Java Native
Interface units in order to run FOP.
I have a batch file with the following call:
java -Xmx256m -cp
"lib\fop\fop.jar;lib\fop\avalon-framework-4.1.3.jar;lib\fop\JimiProClasses.zip"
org.apache.fop.apps.Fop -fo "Data.xml" -c "lib\fop\Config.xml" -pdf
"Data.pdf"
I was able to easily add the "-Xmx256m" parameter in the options array.
The "-cp" parameter caused an error, so I used -Djava.class.path="..."
instead, but I am not sure wether it worked.
I am not too familiar with Java, what does the construct
"org.apache.fop.apps.Fop" exactly express. Is it the class name and the
name of a function that is called?
JNIEnv.FindClass('org.apache.fop.apps.Fop'); doesn't find anything, so
that must be wrong.
Does anybody know how I would have to call the functions FindClass and
GetStaticMethodID in order to achieve what I want?
Best regards,
Christian Kirchhoff
I am developing with Delphi 6 and would liek to use the Java Native
Interface units in order to run FOP.
I have a batch file with the following call:
java -Xmx256m -cp
"lib\fop\fop.jar;lib\fop\avalon-framework-4.1.3.jar;lib\fop\JimiProClasses.zip"
org.apache.fop.apps.Fop -fo "Data.xml" -c "lib\fop\Config.xml" -pdf
"Data.pdf"
I was able to easily add the "-Xmx256m" parameter in the options array.
The "-cp" parameter caused an error, so I used -Djava.class.path="..."
instead, but I am not sure wether it worked.
I am not too familiar with Java, what does the construct
"org.apache.fop.apps.Fop" exactly express. Is it the class name and the
name of a function that is called?
JNIEnv.FindClass('org.apache.fop.apps.Fop'); doesn't find anything, so
that must be wrong.
Does anybody know how I would have to call the functions FindClass and
GetStaticMethodID in order to achieve what I want?
Best regards,
Christian Kirchhoff