japanese free videos PHP and Java integrated development detailed analysis Powerful alliance page 1/4

WBOY
Release: 2016-07-29 08:39:10
Original
16509 people have browsed it

As time passed, these two bright spots became brighter and brighter. Soon, they were liked by programmers, so some people had questions: What would happen if the two of them met? Is it possible to combine their strengths?
Try to build a bridge between PHP and Java and use this bridge to establish a communication channel between these two entities. With the help of this bridge, you can develop classes in Java and then call them in PHP Their methods, too, can be used with PHP scripts in your Java desktop or web applications.
In this article, you will learn how to:
◆Install and configure the PHP/Java bridge
◆Use Java classes in PHP scripts
◆Use PHP scripts in Java classes
◆Use PHP scripts in JSP pages
Then let’s get started!
Install and configure the PHP/Java bridge
The latest PHP/Java bridge zip package can be downloaded at http://sourceforge.net/projects/php-java-bridge/. The installation process depends on which Java platform is selected through this bridge Interact with PHP scripts.
◆For J2SE, the installation is very simple:
◆Install J2SE 1.6 or higher
◆Install PHP 5.1.4 or higher
◆Unzip the php-java-bridge_5.2.2_j2ee.zip package
Enter just now from the command prompt Unzipped directory, enter:
?>java ?classpath JavaBridge.war TestInstallation
In this folder, you should see an ext directory, which includes four .jar files, copy JavaBridge.jar and php. -script.jar to the ext folder in your J2SE installation directory (usually {JAVA_HOME}/jre/lib/ext).
For J2EE, perform the following installation steps:
Copy the JavaBridge.war file to the auto_deploy folder under your J2EE server or servlet engine (Tomcat, Resin, etc.).
Rename the file according to your application, then restart the J2EE server and wait for the automatic deployment process to create the directory related to the .war file. In this example, the application is called appName.war.
To test a new application from a browser, enter: http://localhost:8080/appName and click test.php.
If your J2EE server runs on different hosts and ports, the parameters must be modified accordingly.
Note: If you want to run a J2EE/PHP application on Apache or IIS, copy the directory including appName to the document root directory of Apache/IIS.

Current page 1/4 1234Next page

The above introduces the detailed analysis of japanese free videos PHP and Java integrated development. Page 1/4 of the powerful alliance, including the content of japanese free videos. I hope it will be helpful to friends who are interested in PHP tutorials.

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!