<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Installing PHP Java Bridge on Ubuntu</title>
	<atom:link href="http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/</link>
	<description>Linux, PHP, MySQL, Apache, Development and More . . .</description>
	<lastBuildDate>Sun, 25 Jul 2010 19:10:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Darryl Clarke</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-260</link>
		<dc:creator>Darryl Clarke</dc:creator>
		<pubDate>Tue, 20 Oct 2009 01:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-260</guid>
		<description>You shouldn&#039;t be in the &#039;server&#039; directory, you should just be in /usr/src/php-java-bridge-5.2.0</description>
		<content:encoded><![CDATA[<p>You shouldn&#8217;t be in the &#8216;server&#8217; directory, you should just be in /usr/src/php-java-bridge-5.2.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kunal</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-259</link>
		<dc:creator>kunal</dc:creator>
		<pubDate>Tue, 20 Oct 2009 01:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-259</guid>
		<description>Hi ,
i followed ur steps mentioned but when i configure i get the following error and i tried almost everything in vain....this is driving me crazy... can you help me tell what the problem is?
=== configuring in server (/usr/src/php-java-bridge-5.2.0/server)
configure: running /bin/bash ./configure --disable-option-checking &#039;--prefix=/usr/local/zend&#039;  &#039;-with-java=/usr/lib/jvm/java-6-sun,/usr/lib/jvm/java-6-sun&#039; --cache-file=/dev/null --srcdir=.
/bin/bash: ./configure: No such file or directory
configure: error: ./configure failed for server</description>
		<content:encoded><![CDATA[<p>Hi ,<br />
i followed ur steps mentioned but when i configure i get the following error and i tried almost everything in vain&#8230;.this is driving me crazy&#8230; can you help me tell what the problem is?<br />
=== configuring in server (/usr/src/php-java-bridge-5.2.0/server)<br />
configure: running /bin/bash ./configure &#8211;disable-option-checking &#8216;&#8211;prefix=/usr/local/zend&#8217;  &#8216;-with-java=/usr/lib/jvm/java-6-sun,/usr/lib/jvm/java-6-sun&#8217; &#8211;cache-file=/dev/null &#8211;srcdir=.<br />
/bin/bash: ./configure: No such file or directory<br />
configure: error: ./configure failed for server</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-196</link>
		<dc:creator>james</dc:creator>
		<pubDate>Tue, 08 Sep 2009 14:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-196</guid>
		<description>hi again,

im getting this error, though i have already commented the code on my java.ini

Warning: pfsockopen() [function.pfsockopen]: unable to connect to 127.0.0.1:8080 (Connection refused) in /var/www/spotportal/jar/java/Java.inc on line 1034

Fatal error: Uncaught exception &#039;java_ConnectException&#039; with message &#039;Could not connect to the J2EE server 127.0.0.1:8080. Please start it, for example with the command: &quot;java -jar JavaBridge.jar SERVLET:8080 3 JavaBridge.log&quot; or, if the back end has been compiled to native code, with &quot;modules/java SERVLET:8080 3 JavaBridge.log&quot;. Error message: Connection refused (111) &#039; in /var/www/spotportal/jar/java/Java.inc:1036 Stack trace: #0 /var/www/spotportal/jar/java/Java.inc(1042): java_HttpHandler-&gt;open() #1 /var/www/spotportal/jar/java/Java.inc(1157): java_HttpHandler-&gt;java_HttpHandler(Object(java_Protocol), &#039;&#039;, &#039;127.0.0.1&#039;, &#039;8080&#039;) #2 /var/www/spotportal/jar/java/Java.inc(1197): java_Protocol-&gt;createHttpHandler() #3 /var/www/spotportal/jar/java/Java.inc(1202): java_Protocol-&gt;createHandler() #4 /var/www/spotportal/jar/java/Java.inc(348): java_Protocol-&gt;java_Protocol(Object(java_Client)) #5 /var/www/spotportal/jar/java/Java.inc(1542): java_Client-&gt;java_Client() #6 /var/www/spotportal/jar/java/Java.inc(1873): __javaproxy_Client in /var/www/spotportal/jar/java/Java.inc on line 1036</description>
		<content:encoded><![CDATA[<p>hi again,</p>
<p>im getting this error, though i have already commented the code on my java.ini</p>
<p>Warning: pfsockopen() [function.pfsockopen]: unable to connect to 127.0.0.1:8080 (Connection refused) in /var/www/spotportal/jar/java/Java.inc on line 1034</p>
<p>Fatal error: Uncaught exception &#8216;java_ConnectException&#8217; with message &#8216;Could not connect to the J2EE server 127.0.0.1:8080. Please start it, for example with the command: &#8220;java -jar JavaBridge.jar SERVLET:8080 3 JavaBridge.log&#8221; or, if the back end has been compiled to native code, with &#8220;modules/java SERVLET:8080 3 JavaBridge.log&#8221;. Error message: Connection refused (111) &#8216; in /var/www/spotportal/jar/java/Java.inc:1036 Stack trace: #0 /var/www/spotportal/jar/java/Java.inc(1042): java_HttpHandler-&gt;open() #1 /var/www/spotportal/jar/java/Java.inc(1157): java_HttpHandler-&gt;java_HttpHandler(Object(java_Protocol), &#8221;, &#8217;127.0.0.1&#8242;, &#8217;8080&#8242;) #2 /var/www/spotportal/jar/java/Java.inc(1197): java_Protocol-&gt;createHttpHandler() #3 /var/www/spotportal/jar/java/Java.inc(1202): java_Protocol-&gt;createHandler() #4 /var/www/spotportal/jar/java/Java.inc(348): java_Protocol-&gt;java_Protocol(Object(java_Client)) #5 /var/www/spotportal/jar/java/Java.inc(1542): java_Client-&gt;java_Client() #6 /var/www/spotportal/jar/java/Java.inc(1873): __javaproxy_Client in /var/www/spotportal/jar/java/Java.inc on line 1036</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-195</link>
		<dc:creator>james</dc:creator>
		<pubDate>Tue, 08 Sep 2009 13:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-195</guid>
		<description>hi,

im trying to make this work but i cant seem to find eh java folder which should be included in the source file.

thanks
james</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>im trying to make this work but i cant seem to find eh java folder which should be included in the source file.</p>
<p>thanks<br />
james</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darryl Clarke</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-151</link>
		<dc:creator>Darryl Clarke</dc:creator>
		<pubDate>Tue, 28 Jul 2009 23:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-151</guid>
		<description>Sorry, it looks like you&#039;re trying to get PHP working on Apache Tomcat, and this thread is not about that.

This is about getting Java support in regular Apache and PHP.  All the references you&#039;ve made to Tomcat are irrelevant to using the PHP/Java Bridge.</description>
		<content:encoded><![CDATA[<p>Sorry, it looks like you&#8217;re trying to get PHP working on Apache Tomcat, and this thread is not about that.</p>
<p>This is about getting Java support in regular Apache and PHP.  All the references you&#8217;ve made to Tomcat are irrelevant to using the PHP/Java Bridge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eduardo</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-149</link>
		<dc:creator>eduardo</dc:creator>
		<pubDate>Tue, 28 Jul 2009 23:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-149</guid>
		<description>Ok work but i need to make work in the :

http://192.168.0.40:8080/JavaBridge/

Always return this error:

HTTP Status 404 - Servlet PhpCGIServlet is not available

type Status report

message Servlet PhpCGIServlet is not available

description The requested resource (Servlet PhpCGIServlet is not available) is not available.
Apache Tomcat/5.5</description>
		<content:encoded><![CDATA[<p>Ok work but i need to make work in the :</p>
<p><a href="http://192.168.0.40:8080/JavaBridge/">http://192.168.0.40:8080/JavaBridge/</a></p>
<p>Always return this error:</p>
<p>HTTP Status 404 &#8211; Servlet PhpCGIServlet is not available</p>
<p>type Status report</p>
<p>message Servlet PhpCGIServlet is not available</p>
<p>description The requested resource (Servlet PhpCGIServlet is not available) is not available.<br />
Apache Tomcat/5.5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darryl Clarke</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-148</link>
		<dc:creator>Darryl Clarke</dc:creator>
		<pubDate>Mon, 27 Jul 2009 18:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-148</guid>
		<description>Java.inc is a PHP file that needs to be included in your PHP where you are trying to use Java.

Trying to run Java.inc with your tomcat server won&#039;t work.

The file you are trying to access here:
http://172.17.0.12/java.php

needs to include the Java.inc file.
require_once &quot;/var/lib/tomcat5.5/webapps/JavaBridge/java/Java.inc&quot;
(assuming that is the correcet path.)</description>
		<content:encoded><![CDATA[<p>Java.inc is a PHP file that needs to be included in your PHP where you are trying to use Java.</p>
<p>Trying to run Java.inc with your tomcat server won&#8217;t work.</p>
<p>The file you are trying to access here:<br />
<a href="http://172.17.0.12/java.php">http://172.17.0.12/java.php</a></p>
<p>needs to include the Java.inc file.<br />
require_once &#8220;/var/lib/tomcat5.5/webapps/JavaBridge/java/Java.inc&#8221;<br />
(assuming that is the correcet path.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-147</link>
		<dc:creator>Eduardo</dc:creator>
		<pubDate>Mon, 27 Jul 2009 18:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-147</guid>
		<description>When i open:

http://172.17.0.12:8080/JavaBridge/java/Java.inc

&quot;))) { $msg = &quot;
PHP $version too old.
\nFor PHP versions 0) { $thiz = $ar[$arLen-1]; return dirname($thiz); } else { return &quot;java/&quot;; } } $JAVA_BASE=java_get_base(); class java_RuntimeException extends Exception {}; class java_IllegalStateException extends java_RuntimeException {}; class java_IllegalArgumentException extends java_RuntimeException { function __construct($ob) { parent::__construct(&quot;illegal argument: &quot;.gettype($ob)); } }; function java_autoload_function($x) { $str=str_replace(&quot;_&quot;, &quot;.&quot;, $x); $client=__javaproxy_Client_getClient(); if(!($client-&gt;invokeMethod(0, &quot;typeExists&quot;, array($str)))) return false; $instance = &quot;class ${x} extends Java {&quot;. &quot;static function type(\$sub=null){if(\$sub) \$sub=&#039;\$&#039;.\$sub; return java(&#039;${str}&#039;.\&quot;\$sub\&quot;);}&quot;. &#039;function __construct() {$args = func_get_args();&#039;. &#039;array_unshift($args, &#039;.&quot;&#039;$str&#039;&quot;.&#039;); parent::__construct($args);}}&#039;; eval (&quot;$instance&quot;); return true; } function java_autoload($libs=null) { static $once = false; if($once) throw new java_IllegalStateException(&quot;java_autoload called more than once&quot;); $once = true; java_require($libs); if(function_exists(&quot;spl_autoload_register&quot;)) { spl_autoload_register(&quot;java_autoload_function&quot;); } else { function __autoload($x) { return java_autoload_function($x); } } } function Java($name) { static $classMap = array(); if(array_key_exists($name, $classMap)) return $classMap[$name]; return $classMap[$name]=new JavaClass($name); } function java_get_closure() {return java_closure_array(func_get_args());} function java_get_values($arg) { return java_values($arg); } function java_get_session() {return java_session_array(func_get_args());} function java_get_context() {return java_context(); } function java_get_server_name() { return java_server_name(); } function java_set_encoding($enc) { return java_set_file_encoding ($enc); } function java_set_library_path($arg) { return java_require($arg); } function java_defineHostFromInitialQuery($java_base) { if($java_base!=&quot;java/&quot;) { $url = parse_url($java_base); if(isset($url[&quot;scheme&quot;]) &amp;&amp; ($url[&quot;scheme&quot;]==&quot;http&quot;)) { $host = $url[&quot;host&quot;]; $port = $url[&quot;port&quot;]; $path = $url[&quot;path&quot;]; define (&quot;JAVA_HOSTS&quot;, &quot;$host:$port&quot;); $dir = dirname($path); define (&quot;JAVA_SERVLET&quot;, &quot;$dir/JavaBridge.phpjavabridge&quot;); return true; } } return false; } define (&quot;JAVA_PEAR_VERSION&quot;, &quot;5.0.0&quot;); if(!defined(&quot;JAVA_SEND_SIZE&quot;)) define(&quot;JAVA_SEND_SIZE&quot;, 8192); if(!defined(&quot;JAVA_RECV_SIZE&quot;)) define(&quot;JAVA_RECV_SIZE&quot;, 8192); if (defined (&quot;JAVA_PARSE_INI_FILE&quot;) &amp;&amp; JAVA_PARSE_INI_FILE) { $ini=@parse_ini_file(&quot;java.ini&quot;); if(array_key_exists(&quot;java.hosts&quot;, $ini)) define(&quot;JAVA_HOSTS&quot;, $ini[&quot;java.hosts&quot;]); if(array_key_exists(&quot;java.servlet&quot;, $ini)) define(&quot;JAVA_SERVLET&quot;, $ini[&quot;java.servlet&quot;]); if(array_key_exists(&quot;java.log_level&quot;, $ini)) define(&quot;JAVA_LOG_LEVEL&quot;, $ini[&quot;java.log_level&quot;]); } if(!defined(&quot;JAVA_HOSTS&quot;)) { if(!java_defineHostFromInitialQuery($JAVA_BASE)) { define(&quot;JAVA_HOSTS&quot;, &quot;127.0.0.1:8080&quot;); define(&quot;JAVA_SERVLET&quot;, &quot;On&quot;); } } else { if(!defined(&quot;JAVA_SERVLET&quot;)) define(&quot;JAVA_SERVLET&quot;, &quot;On&quot;); } if(!defined(&quot;JAVA_LOG_LEVEL&quot;)) define (&quot;JAVA_LOG_LEVEL&quot;, null); if(!defined(&quot;JAVA_PIPE_DIR&quot;)) { if (file_exists (&quot;/dev/shm&quot;)) define(&quot;JAVA_PIPE_DIR&quot;, &quot;/dev/shm&quot; ); elseif (file_exists (&quot;/tmp&quot;)) define(&quot;JAVA_PIPE_DIR&quot;, &quot;/tmp&quot; ); else define (&quot;JAVA_PIPE_DIR&quot;, null); } if (!defined(&quot;JAVA_PREFER_VALUES&quot;)) define(&quot;JAVA_PREFER_VALUES&quot;, 0); if(!defined(&quot;JAVA_DEBUG&quot;)) define(&quot;JAVA_DEBUG&quot;, false); class java_SimpleFactory { public $client; function java_SimpleFactory($client) { $this-&gt;client = $client; } function .....

I dont understood because my php version is:

root@ubuntu-dev2:/var/lib/tomcat5.5/webapps/JavaBridge/java# php -v
PHP 5.2.4-2ubuntu5.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 17 2009 14:31:37)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
root@ubuntu-dev2:/var/lib/tomcat5.5/webapps/JavaBridge/java#</description>
		<content:encoded><![CDATA[<p>When i open:</p>
<p><a href="http://172.17.0.12:8080/JavaBridge/java/Java.inc">http://172.17.0.12:8080/JavaBridge/java/Java.inc</a></p>
<p>&#8220;))) { $msg = &#8221;<br />
PHP $version too old.<br />
\nFor PHP versions 0) { $thiz = $ar[$arLen-1]; return dirname($thiz); } else { return &#8220;java/&#8221;; } } $JAVA_BASE=java_get_base(); class java_RuntimeException extends Exception {}; class java_IllegalStateException extends java_RuntimeException {}; class java_IllegalArgumentException extends java_RuntimeException { function __construct($ob) { parent::__construct(&#8220;illegal argument: &#8220;.gettype($ob)); } }; function java_autoload_function($x) { $str=str_replace(&#8220;_&#8221;, &#8220;.&#8221;, $x); $client=__javaproxy_Client_getClient(); if(!($client-&gt;invokeMethod(0, &#8220;typeExists&#8221;, array($str)))) return false; $instance = &#8220;class ${x} extends Java {&#8220;. &#8220;static function type(\$sub=null){if(\$sub) \$sub=&#8217;\$&#8217;.\$sub; return java(&#8216;${str}&#8217;.\&#8221;\$sub\&#8221;);}&#8221;. &#8216;function __construct() {$args = func_get_args();&#8217;. &#8216;array_unshift($args, &#8216;.&#8221;&#8216;$str&#8217;&#8221;.&#8217;); parent::__construct($args);}}&#8217;; eval (&#8220;$instance&#8221;); return true; } function java_autoload($libs=null) { static $once = false; if($once) throw new java_IllegalStateException(&#8220;java_autoload called more than once&#8221;); $once = true; java_require($libs); if(function_exists(&#8220;spl_autoload_register&#8221;)) { spl_autoload_register(&#8220;java_autoload_function&#8221;); } else { function __autoload($x) { return java_autoload_function($x); } } } function Java($name) { static $classMap = array(); if(array_key_exists($name, $classMap)) return $classMap[$name]; return $classMap[$name]=new JavaClass($name); } function java_get_closure() {return java_closure_array(func_get_args());} function java_get_values($arg) { return java_values($arg); } function java_get_session() {return java_session_array(func_get_args());} function java_get_context() {return java_context(); } function java_get_server_name() { return java_server_name(); } function java_set_encoding($enc) { return java_set_file_encoding ($enc); } function java_set_library_path($arg) { return java_require($arg); } function java_defineHostFromInitialQuery($java_base) { if($java_base!=&#8221;java/&#8221;) { $url = parse_url($java_base); if(isset($url["scheme"]) &amp;&amp; ($url["scheme"]==&#8221;http&#8221;)) { $host = $url["host"]; $port = $url["port"]; $path = $url["path"]; define (&#8220;JAVA_HOSTS&#8221;, &#8220;$host:$port&#8221;); $dir = dirname($path); define (&#8220;JAVA_SERVLET&#8221;, &#8220;$dir/JavaBridge.phpjavabridge&#8221;); return true; } } return false; } define (&#8220;JAVA_PEAR_VERSION&#8221;, &#8220;5.0.0&#8243;); if(!defined(&#8220;JAVA_SEND_SIZE&#8221;)) define(&#8220;JAVA_SEND_SIZE&#8221;, 8192); if(!defined(&#8220;JAVA_RECV_SIZE&#8221;)) define(&#8220;JAVA_RECV_SIZE&#8221;, 8192); if (defined (&#8220;JAVA_PARSE_INI_FILE&#8221;) &amp;&amp; JAVA_PARSE_INI_FILE) { $ini=@parse_ini_file(&#8220;java.ini&#8221;); if(array_key_exists(&#8220;java.hosts&#8221;, $ini)) define(&#8220;JAVA_HOSTS&#8221;, $ini["java.hosts"]); if(array_key_exists(&#8220;java.servlet&#8221;, $ini)) define(&#8220;JAVA_SERVLET&#8221;, $ini["java.servlet"]); if(array_key_exists(&#8220;java.log_level&#8221;, $ini)) define(&#8220;JAVA_LOG_LEVEL&#8221;, $ini["java.log_level"]); } if(!defined(&#8220;JAVA_HOSTS&#8221;)) { if(!java_defineHostFromInitialQuery($JAVA_BASE)) { define(&#8220;JAVA_HOSTS&#8221;, &#8220;127.0.0.1:8080&#8243;); define(&#8220;JAVA_SERVLET&#8221;, &#8220;On&#8221;); } } else { if(!defined(&#8220;JAVA_SERVLET&#8221;)) define(&#8220;JAVA_SERVLET&#8221;, &#8220;On&#8221;); } if(!defined(&#8220;JAVA_LOG_LEVEL&#8221;)) define (&#8220;JAVA_LOG_LEVEL&#8221;, null); if(!defined(&#8220;JAVA_PIPE_DIR&#8221;)) { if (file_exists (&#8220;/dev/shm&#8221;)) define(&#8220;JAVA_PIPE_DIR&#8221;, &#8220;/dev/shm&#8221; ); elseif (file_exists (&#8220;/tmp&#8221;)) define(&#8220;JAVA_PIPE_DIR&#8221;, &#8220;/tmp&#8221; ); else define (&#8220;JAVA_PIPE_DIR&#8221;, null); } if (!defined(&#8220;JAVA_PREFER_VALUES&#8221;)) define(&#8220;JAVA_PREFER_VALUES&#8221;, 0); if(!defined(&#8220;JAVA_DEBUG&#8221;)) define(&#8220;JAVA_DEBUG&#8221;, false); class java_SimpleFactory { public $client; function java_SimpleFactory($client) { $this-&gt;client = $client; } function &#8230;..</p>
<p>I dont understood because my php version is:</p>
<p>root@ubuntu-dev2:/var/lib/tomcat5.5/webapps/JavaBridge/java# php -v<br />
PHP 5.2.4-2ubuntu5.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 17 2009 14:31:37)<br />
Copyright (c) 1997-2007 The PHP Group<br />
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies<br />
root@ubuntu-dev2:/var/lib/tomcat5.5/webapps/JavaBridge/java#</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darryl Clarke</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-146</link>
		<dc:creator>Darryl Clarke</dc:creator>
		<pubDate>Mon, 27 Jul 2009 16:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-146</guid>
		<description>@Eduardo: make sure you&#039;re including/requiring the Java.inc files that are with the java bridge source.  They contain the source for the &#039;Java&#039; class.</description>
		<content:encoded><![CDATA[<p>@Eduardo: make sure you&#8217;re including/requiring the Java.inc files that are with the java bridge source.  They contain the source for the &#8216;Java&#8217; class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/comment-page-1/#comment-145</link>
		<dc:creator>Eduardo</dc:creator>
		<pubDate>Mon, 27 Jul 2009 15:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comment-145</guid>
		<description>Hello, thx for the howto.

I install the following this instructions but show me this error.

http://172.17.0.12/java.php

Fatal error: Class &#039;Java&#039; not found in /var/www/java.php on line 4


############################################

java.php

getProperty(&#039;java.version&#039;) . &#039;&#039;;
echo &#039;Java vendor=&#039; . $system-&gt;getProperty(&#039;java.vendor&#039;) . &#039;&#039;;
echo &#039;OS=&#039; . $system-&gt;getProperty(&#039;os.name&#039;) . &#039; &#039; .
             $system-&gt;getProperty(&#039;os.version&#039;) . &#039; on &#039; .
             $system-&gt;getProperty(&#039;os.arch&#039;) . &#039; &#039;;

// java.util.Date example
$formatter = new Java(&#039;java.text.SimpleDateFormat&#039;,
                     &quot;EEEE, MMMM dd, yyyy &#039;at&#039; h:mm:ss a zzzz&quot;);

echo $formatter-&gt;format(new Java(&#039;java.util.Date&#039;));

?&gt;

############################################3

Apache log.

[Fri Jul 24 18:24:58 2009] [notice] caught SIGWINCH, shutting down gracefully
Jul 24 18:25:09 VMBridge INFO : VM                  : 1.6.0_14@http://java.sun.com/
Jul 24 18:25:09 VMBridge INFO : VMBridge version             : 5.2.0
Jul 24 18:25:09 VMBridge INFO : logFile             :
Jul 24 18:25:09 VMBridge INFO : default logLevel    : 3
Jul 24 18:25:09 VMBridge INFO : socket              : INET_LOCAL:9267
Jul 24 18:25:09 VMBridge INFO : java.ext.dirs       : /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/ext:/usr/java/packages/lib/ext
Jul 24 18:25:09 VMBridge INFO : php.java.bridge.base: /usr/lib/php5/20060613+lfs
Jul 24 18:25:09 VMBridge INFO : thread pool size    : 20
[Fri Jul 24 18:25:09 2009] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch configured -- resuming normal operations</description>
		<content:encoded><![CDATA[<p>Hello, thx for the howto.</p>
<p>I install the following this instructions but show me this error.</p>
<p><a href="http://172.17.0.12/java.php">http://172.17.0.12/java.php</a></p>
<p>Fatal error: Class &#8216;Java&#8217; not found in /var/www/java.php on line 4</p>
<p>############################################</p>
<p>java.php</p>
<p>getProperty(&#8216;java.version&#8217;) . &#8221;;<br />
echo &#8216;Java vendor=&#8217; . $system-&gt;getProperty(&#8216;java.vendor&#8217;) . &#8221;;<br />
echo &#8216;OS=&#8217; . $system-&gt;getProperty(&#8216;os.name&#8217;) . &#8216; &#8216; .<br />
             $system-&gt;getProperty(&#8216;os.version&#8217;) . &#8216; on &#8216; .<br />
             $system-&gt;getProperty(&#8216;os.arch&#8217;) . &#8216; &#8216;;</p>
<p>// java.util.Date example<br />
$formatter = new Java(&#8216;java.text.SimpleDateFormat&#8217;,<br />
                     &#8220;EEEE, MMMM dd, yyyy &#8216;at&#8217; h:mm:ss a zzzz&#8221;);</p>
<p>echo $formatter-&gt;format(new Java(&#8216;java.util.Date&#8217;));</p>
<p>?&gt;</p>
<p>############################################3</p>
<p>Apache log.</p>
<p>[Fri Jul 24 18:24:58 2009] [notice] caught SIGWINCH, shutting down gracefully<br />
Jul 24 18:25:09 VMBridge INFO : VM                  : 1.6.0_14@http://java.sun.com/<br />
Jul 24 18:25:09 VMBridge INFO : VMBridge version             : 5.2.0<br />
Jul 24 18:25:09 VMBridge INFO : logFile             :<br />
Jul 24 18:25:09 VMBridge INFO : default logLevel    : 3<br />
Jul 24 18:25:09 VMBridge INFO : socket              : INET_LOCAL:9267<br />
Jul 24 18:25:09 VMBridge INFO : java.ext.dirs       : /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/ext:/usr/java/packages/lib/ext<br />
Jul 24 18:25:09 VMBridge INFO : php.java.bridge.base: /usr/lib/php5/20060613+lfs<br />
Jul 24 18:25:09 VMBridge INFO : thread pool size    : 20<br />
[Fri Jul 24 18:25:09 2009] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch configured &#8212; resuming normal operations</p>
]]></content:encoded>
	</item>
</channel>
</rss>
