473,397 Members | 2,099 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,397 software developers and data experts.

php java bridge - procedure could not be found in Unknown on line 0 error

hi

I am trying to install the java bridge library for php 5.1.2. I have
installed the j2see 1.4 and jdk. I have setup the [java] section in
php.ini as follows:

[java]
java.classpath = "c:/PHP/ext/JavaBridge.jar;"
java.java_home = "c:/Sun/AppServer/jdk/bin"
java.libpath = "c:/PHP/ext"

I have downloaded pecl package into the php folder. Have copied the
javabridge.jar and .war file to php/ext dir/. I have copied the
php_java.dll from javabridge zip file to the php/ext dir.

Im running windows xp and apache 2.0.55.

Apache will restart, but with an error in the error log file. The error
message is:

Unable to load dynamic library 'c:/php/ext\\php_java.dll' - The
specified procedure could not be found.\r\n in Unknown on line 0

It found the dll but cant find a procedure in it? What the heck is
that?

Anyone have a clue?

Apr 25 '06 #1
3 5853
I am now using the latest php_java.dll. ok, now it seems to load the
php_java.dll fine, but still does not seem to load the JavaBridge.jar
yet. I dont see the normal Javabridge settings in the phpinfo()
information. I just see the java paths information. Java lib
is loaded but not Javabridge. Im trying to use this third party Java
class
called itext. When i try to create instance of this java class in php i
get

Unable to load Java Library jvm.dll, error: The specified module could
not be found. in C:\Program Files\Apache
Group\Apache2\htdocs\xcrmx\content\global\PdfContr ol.php on line 38

Error on the line where i try to create a java instance like this:

$this->pdfWriter = new Java('com.lowagie.text.pdf.PdfWriter');

Ive included the path to the third party class like this in php:

java.class.path = "c:\PHP\ext\JavaBridge.jar;c:\PHP\ext\itext-1.3.jar"

the second jar is the class i want to use. Its in the ext folder. Its
not loading it for some reason. I have the latest version of that jar
also. What is preventing javabridge.jar from loading?

thanks for your help

Apr 25 '06 #2
Itext is a java class for creating pdf files. This itext class works
fine on a server running older version of php_java.dll, javabridge and
apache 1.3. But I need to use apache 2.0 so i can use latest version of
php. But since i upgraded to apache 2.0 i cant get the javabridge to
work right.

If you can provide any useful insight at all, then please do. id
appreciate that.

Apr 28 '06 #3
Hello!
apache 1.3. But I need to use apache 2.0 so i can use latest version of
php.
What does apache 2.0 have to with the php version number? Why don't you
use the latest version of php with the apache server you already have?
Unable to load Java Library jvm.dll, error: The specified module could
not be found.


Looks like you use the PECL extension. In the past I've used the java
bridge from sourceforge: http://php-java-bridge.sourceforge.net/

Peter

May 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Steven M. Scotten | last post by:
Hi-- I seem to have the PHP Java Bridge (2.0.5 built from tarball) working with PHP 5.0.3 (also built from tarball) on my Fedora Core 1 server with Apache 2.0.50 and I'm pretty excited about it...
3
by: dinesh prasad | last post by:
I'm trying to use a servlet to process a form, then send that data to an SQL server stored procedure. I'm using the WebLogic 8 App. server. I am able to retrieve database information, so I know my...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
0
by: anagai | last post by:
hi I have the java bridge library working fine on a windows 2000 and running apache 1.3 but cannot for whatever reason get it to work on windows xp and apache 2.0.5 Ive included the following...
9
by: IchBin | last post by:
I am trying to get Java to work from within PHP. I have been looking at: http://us2.php.net/java The error and line of PHP code: $system = new Java('java.lang.System'); Fatal error: Class...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
7
helpwithcode
by: helpwithcode | last post by:
Hi people, I am just learning java.I have been creating a project which involves JDBC Connectivity.I find that the statements, String string_dob=text_dob.getText(); //Converting string to...
0
by: cosmicxdust | last post by:
I am using Wamp5 v1.7.3 (PHP 5.2.4, Apache/2.2.4). When installing php-java-bridge-3.2.1_j2ee, I copy php_java.dll from PHP/Java Bridge to D:\php\ext. When I start all services, I got this Apache...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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...
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.