Salut,
Survivant 00 wrote:
> I try the example from JF, but I still get
>
> GRAVE: Unable to load class com.sun.script.php.PHPServlet
> java.lang.UnsatisfiedLinkError: no php5 in java.library.path
Hum...It did work for me on Solaris but have'nt try on win32.
>
> I added
>
> -Djava.library.path=c:/php/ext tried : c:/php c:/php/extensions ,
> c:/php/jars . ..
Can you try using \\ instead of /. I think this is related.
A+
--Jeanfrancois
>
> I have php5 in that folder.. but look like is not working.
>
> public void launch(){
> GrizzlyWebServer ws = new GrizzlyWebServer(80);
>
> try {
>
> ServletAdapter sa = new ServletAdapter();
> sa.setContextPath("/");
>
> sa.setRootFolder("php");
> //sa.setServlet(new com.sun.script.php.PHPServlet());
>
> Servlet servlet =
> (Servlet)ClassLoaderUtil.load("com.sun.script.php.PHPServlet");
> sa.setServletInstance(servlet);
>
> ws.addGrizzlyAdapter(sa, new String[]{});
> ws.start();
> } catch (Exception e){
> s_logger.error("Error Launching GrizzlyWebServer",e);
> }
> }
>
>
> I try with Javabridge standlone.. and I'm able to get that
>
>
> PHP Version 5.2.5
>
>
> System Windows NT FB07607 5.1 build 2600
> Build Date Nov 8 2007 23:18:08
> Configure Command cscript /nologo configure.js
> "--enable-snapshot-build" "--with-gd=shared"
> Server API CGI/FastCGI
> Virtual Directory Support enabled
> Configuration File (php.ini) Path C:\WINDOWS
> Loaded Configuration File C:\php\php.ini
> PHP API 20041225
> PHP Extension 20060613
> Zend Extension 220060519
> Debug Build no
> Thread Safety enabled
> Zend Memory Manager enabled
> IPv6 Support enabled
> Registered PHP Streams php, file, data, http, ftp, compress.zlib, zip
> Registered Stream Socket Transports tcp, udp
> Registered Stream Filters convert.iconv.*, string.rot13,
> string.toupper, string.tolower, string.strip_tags, convert.*, consumed,
> zlib.*
>
>