473,795 Members | 3,333 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.d ll' - 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 5872
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\h tdocs\xcrmx\con tent\global\Pdf Control.php on line 38

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

$this->pdfWriter = new Java('com.lowag ie.text.pdf.Pdf Writer');

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

java.class.path = "c:\PHP\ext\Jav aBridge.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
15409
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 all. There are a couple of configuration issues I've run into that are perplexing me. First, I can't seem to change the classpath. I've added:
3
22147
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 application server can talk to the database. I've determined the failure occurs when the the following statement is executed: cstmt.execute(); (due to the failure of println statements placed afterwards). I get the following error after trying to...
1
9657
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
0
1700
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 in php.ini: java.class.path = "c:\PHP\ext\JavaBridge.jar;"
9
10119
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 'Java' not found in C:\Documents and Settings\Ed Taylor\My Documents\Projects Eclipse\workspaces\workspace PHP\Scrapboard\JavaExample.php on line 3
2
6970
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 attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
7
5341
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 date System.out.println(string_dob); s.Info_DOB=Date.valueOf(string_dob); runs perfectly fine in the method insert() and throws up an illegal Exception in the method UPDATE.This is the error I get when I pass a date "1979-05-02"
0
2032
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 log error. PHP Warning: PHP Startup: java: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in...
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10436
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
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
6780
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
5436
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...
1
4113
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
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.