note 91451 added to java.examples
| From: | anto dot justus at gmail dot com | Date: | Wed, 10 Jun 2009 16:01:54 +0000 |
| Subject: | note 91451 added to java.examples | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156744@lists.php.net to get a copy of this message | ||
PHP JavaBridge to work with PHP5 - windows server:
steps:
1- Install Java J2EE 1.5 + JDK 1.4 (which includes application server/deploy tool/etc...)
2- download pecl-5.0.5-Win32.zip and php-java-bridge_2.0.8.zip, which will include
extra dll(s)
- unpack pecl pkg to your extensions folder, in PHP5 its ext.
- unpack java-Bridge to root php folder, in my case its simply C:\PHP
Note: the java-Bridge inculdes new versions of certain files like php_java.dll
so, it would be wise to rename your old files that came with PECL pkg for example
file_old, to rollback at anytime.
In order to deploy/test Java-Bridge .war onto your java application server follow these steps
http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/
INSTALL.WINDOWS?view=markup
Note: move JavaBridge.jar to your extensions folder. and in test.php file that came
with Java-Brdige package change line java_require("test/arrayToString.jar");
to java_require("tests.php4/arrayToString.jar");
Add the following to your php.ini file and restart server:-
java.classpath = "location of JavaBridge.jar file...i.e. to your PHP extensions folder\
JavaBridge.jar,also any other extra java files that you'll be instanciating using your php
script"
java.java_home = "location of jdk\bin"
java.libpath = "location of php_java.dll file...i.e. also to your PHP extensions folder"
----
Server IP: 59.162.86.8
Probable Submitter: 119.82.96.18
----
Manual Page -- http://www.php.net/manual/en/java.examples.php
Edit -- https://master.php.net/note/edit/91451
Del: integrated -- https://master.php.net/note/delete/91451/integrated
Del: useless -- https://master.php.net/note/delete/91451/useless
Del: bad code -- https://master.php.net/note/delete/91451/bad+code
Del: spam -- https://master.php.net/note/delete/91451/spam
Del: non-english -- https://master.php.net/note/delete/91451/non-english
Del: in docs -- https://master.php.net/note/delete/91451/in+docs
Del: other reasons-- https://master.php.net/note/delete/91451
Reject -- https://master.php.net/note/reject/91451
Search -- https://master.php.net/manage/user-notes.php