Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Using exec to run Java apps
Using exec to run Java apps [message #40536] Thu, 02 August 2007 12:30 Go to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:Slow editors
Next Topic:XDebug Support for PDT 1.0 I20070712 is available.
Goto Forum:
  


Current Time: Wed Feb 05 14:07:07 GMT 2025

Powered by FUDForum. Page generated in 0.03375 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top