Menu

[r455]: / trunk / php-java-bridge / javabridge / README  Maximize  Restore  History

Download this file

41 lines (26 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
This directory contains a pure PHP implementation of the PHP/Java
Bridge: it doesn't require a Java extension ("java.so" or
"php_java.dll") installed on the web server.

WARNING: THIS IMPLEMENTATION IS 11 TIMES SLOWER THAN THE C
IMPLEMENTATION.


Installation
------------

* Copy all files from this directory into your web server's PHP
  include path.

* Copy the Java libraries you need into the WEB-INF/lib folder within
  JavaBridge.war and copy JavaBridge.war into the deploy folder of the
  J2EE server or servlet engine and start it (if necessary).

* To call out to your Java libraries require the javabridge/Java.php
  and use the provided Java class as usual. Example:

<?php

  require_once("javabridge/Java.php");
  $string = new java("java.lang.String", "HelloWorld");
  echo $string;

?>

* If the J2EE server or servlet engine does not run on the same
  computer as the web server, change the method
  Protocol::createHttpHandler() accordingly.


Mailing List
------------
Please report bugs/problems to the mailing list:

  php-java-bridge-users@lists.sourceforge.net

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.