The problem is that your copy of PHP is looking in
d:\webroot\phpjavatest1.php for the dll

All you need to do is change one line of your PHP.ini, the line which tells
PHP where you store all your .dll . This is the 'extension_dir' setting

By default:
extension_dir = ./
That means the web root (IE: Where the php script is being run from). I keep
all my .dll for php in C:\server\PHP\extensions so my PHP.ini file has
extension_dir = C:\server\PHP\extension

That should sort out your problem. Just remember:
   a) The path is case sensative
   b) All your .dll for php have to be in the same place
   c) It is probably best not to put the dll in the OS main folder, as some
systems restrict access to the files. It also makes it harder to find (Hence
why my .dll are all in a subdirectory of my php folder!)

Stephen

----- Original Message -----
From: "rainer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 22, 2002 6:34 PM
Subject: [PHP-INST] php4.1.2 and java


> hi list,
> i have problems to install my php4.1.2 with the java extension!
> my system configuration is:
> - win 2k pro
> - apache 1.3.22 (path is "c:\apache")
> - php4.1.2 (path is "c:\php")
> - j2sdk1.4.0.02 (path is "c:\j2sdk1.4.0_02" and "c:\j2sdk1.4.0_02\jre")
>
> i have uncommented in php.ini "extension=php_java.dll" and even copied
this
> file to the "c:\winnt\system32" folder.
> further more i have added at the end pf "php.ini" following "java
section":
>
> [Java]
> java.class.path = "C:\PHP\java\php_java.jar"
> java.home = "C:\j2sdk1.4.0_02\jre"
> java.library = "C:\j2sdk1.4.0_02\jre\bin\server\jvm.dll"
> java.library.path = "C:\j2sdk1.4.0_02\jre\lib"
>
> after restarting the apache webserver i called up following little
> testscript (phpjavatest1.php):
>
> <?php
>  $system = new Java("java.lang.System");
>  print "Java version=".$system->getProperty("java.version")." <br>\n";
>  print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
>  print "OS=".$system->getProperty("os.name")." ".
>     $system->getProperty("os.version")." on ".
>     $system->getProperty("os.arch")." <br>\n";
>     $formatter = new Java("java.text.SimpleDateFormat",
>     "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
>  print $formatter->format(new Java("java.util.Date"))."\n";
> ?>
>
> instead of a correct printout i get following error message on my ie6
> browser:
> "Fatal error: java.lang.UnsatisfiedLinkError: no php_java in
> java.library.path in d:\webroot\phpjavatest1.php on line 2"
>
> so now i'm stucked and i have no idea anymore what to do. please will
> somebody help me with
> an understandable (for a newbee) installation information?
> maybe my php version does not assist java correct?
>
> thanks in advance
> raibru
> [EMAIL PROTECTED]
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to