|
From: <php...@li...> - 2008-10-07 20:57:24
|
Hi,
so the problem is not having a php_java.dll then, since I don't have it.
What could then the reason by of the errors I get from Netbeans.
To repeat my steps:
1) installed JDK 1.6.0_7 and php 5.2.6.
2) downloaded and unzipped java bridge zip file.
3) ran the test installation.
4) tested the Jrunscript with some examples, works fine.
5) tested the deployment of the war file to apache tomcat, works fine for
the java standalone examples.
6) copied php-script.jar and javabridge.jar to java.ext.dirs.
7) opened netbeans 6.0.1 and created java application with example code from
the documentation/server/test involving an invocable php-engine (Netbeans
settings for PHP is to use the php.exe file for handling php files).
8) ran the code resulting in the error reported in the email below.
Since there is no php_java.dll, what could the issue be that is causing the
problem?
Or, alternatively, am I missing a step here to get this to work?
Regards,
Bart
On Fri, Sep 26, 2008 at 9:22 PM, <
php...@li...> wrote:
> Hi,
>
> > the 'thiz' object is null and this is why the proxy
> > part fails.
>
> this happens if the script could not call into the Java continuation.
>
>
> "Invocable" scripts are evaluated in three parts:
>
> part 1 load Java.inc/php_java.dll
>
> part 2 is your script code
>
> part 3 is the call back into Java (if your code did not call into Java)
>
>
> The full script looks like this:
>
> <?php require("http://<localhost>:dynamicPort/JavaBridge/java/Java.inc")?>
> <?php ... your PHP code ... ?>
> <?php java_context()->call(java_closure());
>
> When a php_java.dll exists, part#1 will not be called. In this case we
> assume that your PHP installation already uses the PHP/Java Bridge.
>
> If the asumption is false, and the php_java.dll does not export
> java_context(), part#3 will fail and Java will not be able to get- and call
> the PHP continuation.
>
>
> Regards,
> Jost Boekemeier
>
> __________________________________________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
> gegen Massenmails.
> http://mail.yahoo.com
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
--
The new is always the old. Everything that's old was once new, and
everything that's new will one day be old. The oldest thing of all is the
present, because there's never been anything else but the present. No one
has ever lived in the past, and no one lives in the future, either.
|