|
From: <php...@li...> - 2009-08-26 18:08:36
|
Hi,
What does java_require do? Are you sure the library that java uses contains
this method?
Regards,
Jost Boekemeier
26. Aug 2009 7:36 nachm. schrieb am <
php...@li...>:
Hi,
i am trying to access a java library (itext.jar) from my java code (also in
a
.jar in the same directory as itext.jar).
The specific offending testcase-call to itext is:
PaperHeight = (int)(com.lowagie.text.PageSize.LETTER.getHeight());
In my java code i import from itext what i need and it works on the command
line (compile and execute). However, from the browser it does not.
In my index.php (which i use as a sandbox) i make the call:
java_require("../java/PatchAntenna_20090826/lib/PA.jar");
java_require("../java/PatchAntenna_20090826/lib/iText-2.1.7.jar");
before i create a new instance of my class which in turn calls the itext
method.
When i execute the php script in the browser i get:
Cause: java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.getHeight()
which indicates to me that i cannot find the library.
What am i missing here? Did i forget something?
thanks for the help
matt
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|