473,769 Members | 6,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php 5 - how to integrate Java to PHP 5

5 New Member
I have PHP 5.0.5 and java 1.2.2. I am trying to integrate them together. I have configure the php.ini as following:

;This must point to the location of php_java.dll.
java.library.pa th = "C:\php\ext "

; This points to the directory where your Java
; classes will be stored. You can designate multiple
; paths, each path separated by a semicolon.
; It must also include the location of php_java.jar
java.classpath = "C:\php\ext\jdk 1.2.2\php_java. jar"

; This points to the bin directory of the JDK.
java.home = "C:\jdk1.2.2\bi n"

; This must point to the Java Virtual Machine (jvm.dll) file.
java.library = "C:\jdk1.2.2\jr e\bin\classic\j vm.dll"

I tried a test file but it doesn't work - always get "cannot find page" error.

Anybody can tell what's wrong?

Thanks

Harry
Aug 1 '06 #1
3 5492
sashi
1,754 Recognized Expert Top Contributor
Hi Hwang,

please refer to the links attached.. take care..

http://www.thescripts.com/forum/thread11467.html
http://php-java-bridge.sourceforge.net/#ini-options
Aug 2 '06 #2
hwang2404
5 New Member
Does it mean if I use PHP5, I have to use PHP/Java bridge to integrate them? BTW, I am using Windows (2003) OS.

Thanks

Harry
Aug 2 '06 #3
hwang2404
5 New Member
Thanks, I made the Java/PHP bridge works.

BTW, anybody knows how to import a outside java package to PHP? Because I need to use another company's class package for my PHP to pass parameter to it for some reason.

Thanks

harry
Aug 3 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
2494
by: rockwell | last post by:
Hi groups i want to write a program ro numerically integrate an equation using the rectangle method,i know a little bit about the rectangle method but never used it abd dont quite really know how to program it.if you guys know how to do it, can you help me out. the equation looks like eq = ∫ sin(θ*Π) / cos(2*Π*θ) ,the integration is from 0 to 1000. Thanks in advance,
5
2654
by: Marcelo | last post by:
How can I integrate c++ programs inside a GUI java interface? I would like to get the results from a c++ program and integrate them inside a java GUI. thanks Marcelo
0
1848
by: eric | last post by:
Hi, I would like to build the inParams SQLJ sample procedure from the Development Center. if I declare a #sql public iterator SpIterat, the Development Center complains this should be in a separate file. if I declare a #sql iterator SpIterat, the Development Center complains the statements #sql updateIterator are not Java ...
0
1232
by: BFM | last post by:
Hello, I'm just beginning a project, and looking through much documentation, and trying to figure out the best platform to develop the core of my project in/on. The project will consist of a server/client relationship, with both the server and client needing access to much of the Windows API. It will need to integrate with Outlook, and probably access to other selected Window programs.
0
1159
by: rajaramanindia | last post by:
I have some doubt in integration. We have a java based web applications and .net based windows application. Example" Java Web applications having a grid with some datas. when the user will clicked the button (from web application), then all the grid datas should be populated in windows application gridview. It will happen concurrency. How will design the application? Please tell me some feasiable solutions. Regards, Raman.
1
3652
by: BanuPriyag | last post by:
Hi All Can we open Microsoft Word application in Java. Inside java interfaceMicrosoft word application should get opened and not the word file. One of the solution i received was using JIntegra's com object, then i came to know it was a thrid party tool. Is there is any other single way to make this without using thirdparty tool. If anybody have answer kindly post that for me.
1
1939
by: Prajaktaj | last post by:
Hi All, I have created one web service in java which contain one web method called getItemDetails(). I have also created one web service in .Net which contains another 4 web methods. I want to integrate the java web service in .Net web service. For this purpose I have added the web reference of .WSDL file in to .Net web service. And by creating the object of that web service I have called getItemDetails() method. when I tried running...
5
6713
by: najmi | last post by:
hai.. i hava use FullCalendar in my application.i try to reload event into the calendar but it doesn`t work.here is my code <%@ page import="java.util.HashMap;" %> <%@ page import="java.util.Map;" %> <%@ page import="com.google.gson.Gson;" %>
1
2529
by: najmi | last post by:
hai, i have one problem to integrate ms access and mysql together using jsp.my error is it can not find the driver for mysql..here is my code <%@ page import="java.sql.*" %> <% Connection odbcconn = null; Connection jdbcconn = null; PreparedStatement readsms = null;
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.