Posted by Colin McKinnon on 12/17/77 11:54
IchBin wrote:
> 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
>
PHP can't find a class definition - the PECL extension isn't loaded. You can
confirm this using phpinfo()
> This is what I have defined in my PHP.ini:
>
> extension=php_java.dll
>
> java.class.path = "C:\php5.2\ext\php_java.jar"
> java.home = "C:\Program Files\Java\jdk1.5.0_07"
> java.library = "C:\Program
> Files\Java\jdk1.5.0_07\jre\bin\server\jvm.lib"
> java.library.path = "C:\php5.2\ext"
>
Not used the Java wrapper - typically if PHP can't load an extension it
tells you (You may need to crank up the default volume on error reporting):
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/extensions/libnonesuch.so'
- /usr/lib/php5/extensions/libnonesuch.so: cannot open shared object file:
No such file or directory in Unknown on line 0
HTH
C.
Navigation:
[Reply to this message]
|