Using exec to run Java apps [message #40536] |
Thu, 02 August 2007 12:30 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: juice.hi.makni.htnet.hr
Hi,
I use PDT for developing a reporting framework in PHP. For XSL-FO
conversions I use Apache FOP which is written in Java. I run it from PHP
using exec() to run the bat file provided with FOP. When I run it from
shell it works fine, but when I run it from Eclipse PDT the java.exe
process hangs. If I kill the process, the PHP program continues
execution (exec returns an error).
I work in Windows XP, using Eclipse 3.3, PDT M1, Java RE 1.6.0 and PHP
5.2.1.
Does anybody know how to solve this? I do not wish to use PHP's Java
object because it is still experimental.
Thanks!
Ivan
|
|
|
Re: Using exec to run Java apps [message #40667 is a reply to message #40536] |
Fri, 03 August 2007 05:06 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: bono.gmail.com
Juice wrote:
> Hi,
> I use PDT for developing a reporting framework in PHP. For XSL-FO
> conversions I use Apache FOP which is written in Java. I run it from PHP
> using exec() to run the bat file provided with FOP. When I run it from
> shell it works fine, but when I run it from Eclipse PDT the java.exe
> process hangs. If I kill the process, the PHP program continues
> execution (exec returns an error).
> I work in Windows XP, using Eclipse 3.3, PDT M1, Java RE 1.6.0 and PHP
> 5.2.1.
> Does anybody know how to solve this? I do not wish to use PHP's Java
> object because it is still experimental.
> Thanks!
> Ivan
First of all PHP-Java Bridge is not experiental, please refer to
http://php-java-bridge.sourceforge.net/ and see the power of this
extension.
Second, Do you experience the same behivour when running the php code
outside of PDT? do you run it in debug or run mode?
Third, Ithink that you should open a bug, on
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT
|
|
|
Re: Using exec to run Java apps [message #40852 is a reply to message #40667] |
Fri, 03 August 2007 13:47 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: juice.hi.makni.htnet.hr
Bono wrote:
> First of all PHP-Java Bridge is not experiental, please refer to
> http://php-java-bridge.sourceforge.net/ and see the power of this
> extension.
I wasn't aware of that extension. I'll have a look at it. Thnx.
> Second, Do you experience the same behivour when running the php code
> outside of PDT? do you run it in debug or run mode?
When I run it directly from shell it does not block. It only blocks when
run from PDT. Both run and debug modes block.
> Third, Ithink that you should open a bug, on
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT
I'll do that, but first I'd like to see if I can solve the problem.
Thank you, Bono.
Regards,
Ivan
|
|
|
Powered by
FUDForum. Page generated in 0.03375 seconds