Php-java-bridge using Notes

Source: Internet
Author: User

Recently, because of the need to encapsulate a jar package for PHP calls, search on the internet, basically is to use Php-java-bridge, to tell the truth, the online tutorial has a lot of is not good, but Kung fu is not negative, found an article, but also thank the author of the article, the link is HTTP// Www.jb51.net/article/55451.htm, most of the reference here, tossing the two days, have a little experience to share with you, less go a little detour, especially just contact a piece of, I am also a new person.

Now get to the point, I write is based on the Windows platform, the first part of course is to download Php-java-bridge, oneself is also inexperienced, spent a little time on top, The first direct download is Javabridge.jar, actually not download this separately, first enter this site http://sourceforge.net/projects/php-java-bridge/files, choose Binary Package, then select the latest version Php-java-bridge_ 6.2.1, download Javabridgetemplate621.war, download good later will use Tomcat, first put Javabridgetemplate621.war under Tomcat WebApps, start Tomcat,tomcat will parse the file, and then Create a folder with the same name, Tomcat's main role here is this (run out), and then copy the folder to Apache for use, the next step is to put their own jar package is written under the Java Virtual machine, that is, the JRE installed below, such as my C:\Program Files\java\jre6\lib\ext below (in the high version can no longer use the java_require, put their own jar package put into the virtual machine will not need to introduce the package), Then double-click to run Javabridge.jar (this file can be downloaded separately, you can also find this file in the Javabridgetemplate621\web-inf\lib directory just now), select port 8080, here you need to pay attention to the next order, is to put a good jar package first, Then run Javabridge.jar, otherwise you will be prompted not to find the class file, if you want to have a new jar package written into the Java Virtual Machine directory, the virtual machine first stop (I direct Task Manager end Java.exe), and then start Javabridge.jar, then you can start Apache test Try it, it's written here.

Above is a simple experience, in fact, I still have a lot of do not understand, if the above is wrong, welcome to communicate correct, thank you.

Php-java-bridge using Notes

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.