Re: PHP and Java: accessing Java classes from PHP
| From: | Holografix | Date: | Tue, 31 Jul 2007 10:25:38 +0000 |
| Subject: | Re: PHP and Java: accessing Java classes from PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259881@lists.php.net to get a copy of this message | ||
Hi
>
> If you mean you tried this:
> http://php.net/java
It was the first thing I tried. I will post a bug in http://bugs.php.net
Then I read about php-java-bridge but the examples were using older versions
of php-jb.
> That said, I don't see how you could possibly access Java without
> running Java... But maybe servelets is something separate from the
> monolithic Java already running?
We can't use apache tomcat (java app server). Java is present and running
but not tomcat.
> You might also consider taking a step back and writing a Java program
> that uses SOAP/RPC/??? to provide the info PHP needs via HTTP instead
> of trying to get PHP and Java to play nice together at the binary
> level...
I am not the java coder so I have to use the code that already exists.
Thank you very much for the answer.
greets
holo
""Richard Lynch"" <ceo@l-i-e.com> wrote in message
news:2272.24.12.13.192.1185570022.squirrel@www.l-i-e.com...
> On Fri, July 27, 2007 10:31 am, Holografix wrote:
>> I need to access some custom and native Java classes from php.
>> I've tried the steps form php manual and php-javabridge from sf but I
>> always
>> get an apache crash.
>> I don't need to run servlets and it's impossible to start servlet
>> engine in
>> the server (project requirements).
>>
>> The tutorials i've found are outdated (old php-javabridge versions)
>> and
>> refer to some files that no longer exists.
>>
>> If someone can point the right direction I would like to see the
>> solution.
>>
>> I'm using win xp pro sp2, php 5.2.3, java 1.6.0_02.
>
> If you mean you tried this:
> http://php.net/java
> and it crashed, then post a bug report here:
> http://bugs.php.net/
>
> If you haven't tried that, try it. :-)
>
> That said, I don't see how you could possibly access Java without
> running Java... But maybe servelets is something separate from the
> monolithic Java already running?
>
> You might also consider taking a step back and writing a Java program
> that uses SOAP/RPC/??? to provide the info PHP needs via HTTP instead
> of trying to get PHP and Java to play nice together at the binary
> level...
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
>