PHP 跟 Java 整合 PHP/Java Bridge

WBOY
Release: 2016-06-13 10:54:40
Original
915 people have browsed it

PHP 和 Java 整合 PHP/Java Bridge
下载 PHP/Java Bridge http://sourceforge.net/projects/php-java-bridge/ 进行安装:
安装 J2SE 1.6 或者更高版本.

安装 Install PHP 5.1.4 或者更高版本.

解压刚才下载的 php-java-bridge_5.2.2_j2ee.zip.

# 命令行执行CD的解压路径,执行以下命令:

…>java –classpath JavaBridge.war TestInstallation

在当前文件夹, 你能看到一个目录ext,它包含了四个 .jar 文件. 拷贝 JavaBridge.jar  php-script.jar 到你的 J2SE ext 目录 ({JAVA_HOME}/jre/lib/ext).

安装 PHP/Java Bridge 为 J2EE:

    * 拷贝 JavaBridge.war 到 J2EE自动部署目录.

    * 重新命名文件为你的Application名字,等待部署完成. 在这个例子中, Application名字叫做appName.war.

    * 测试: http://localhost:8080/appName (click on test.php).

作者注释: 如果在Apache或者ISS上面, 拷贝war文件到document root目录.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!