473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

php 5 - how to integrate Java to PHP 5

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.path = "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\jdk1.2.2\php_java.jar"

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

; This must point to the Java Virtual Machine (jvm.dll) file.
java.library = "C:\jdk1.2.2\jre\bin\classic\jvm.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 5477
sashi
1,754 Expert 1GB
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
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
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
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...
5
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
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...
0
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...
0
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...
1
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...
1
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...
5
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...
1
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.*" %> <% ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.