PHP and Java Integration Php/java Bridge

Source: Internet
Author: User
PHP and Java Integration Php/java Bridge
Download Php/java Bridge http://sourceforge.net/projects/php-java-bridge/for installation:
Install J2SE 1.6 or later.

Installing install PHP 5.1.4 or later.

Unzip the php-java-bridge_5.2.2_j2ee.zip you just downloaded.

# command line to execute the CD decompression path, execute the following command:

... >java–classpath Javabridge.war testinstallation

In the current folder, you can see a directory ext, which contains four. jar files. Copy the Javabridge.jar Php-script.jar to your J2SE ext directory ({java_home}/jre/lib/ext).

Install Php/java Bridge for the Java EE:

* Copy Javabridge.war to the Java EE Automatic deployment directory.

* Rename the file to your application name and wait for the deployment to complete. In this example, application is named Appname.war.

* Test: Http://localhost:8080/appName (click on test.php).

Author Note: If you are on Apache or ISS, copy the war file to the document root directory.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.