<?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 the PHP Java Bridge in Ubuntu (Gutsy Gibbon)</title>
	<atom:link href="http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/</link>
	<description>My Tech Discovery Blog on PHP, Ajax, Security and Web 2.0</description>
	<lastBuildDate>Thu, 04 Mar 2010 06:33:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hakan</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-39636</link>
		<dc:creator>Hakan</dc:creator>
		<pubDate>Tue, 16 Dec 2008 20:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-39636</guid>
		<description>@dbigang
That did the trick for me. Thanks!</description>
		<content:encoded><![CDATA[<p>@dbigang<br />
That did the trick for me. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbigand</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-39518</link>
		<dc:creator>dbigand</dc:creator>
		<pubDate>Sun, 05 Oct 2008 17:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-39518</guid>
		<description>Hello,

Just and require_once(&#039;Java.inc&#039;); in you&#039;re script.

You&#039;ll find this file in the source directory of php_java_bridge.

regards

david</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Just and require_once(&#8216;Java.inc&#8217;); in you&#8217;re script.</p>
<p>You&#8217;ll find this file in the source directory of php_java_bridge.</p>
<p>regards</p>
<p>david</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinu</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-39476</link>
		<dc:creator>vinu</dc:creator>
		<pubDate>Tue, 19 Aug 2008 15:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-39476</guid>
		<description>Slei,
It looks like PHP cannot find Java. Since you&#039;ve used custom compiled versions of PHP, the installer may not have updated your PHP.ini.
The following link may be useful for you:
http://www.raditha.com/php/java.php</description>
		<content:encoded><![CDATA[<p>Slei,<br />
It looks like PHP cannot find Java. Since you&#8217;ve used custom compiled versions of PHP, the installer may not have updated your PHP.ini.<br />
The following link may be useful for you:<br />
<a href="http://www.raditha.com/php/java.php" rel="nofollow">http://www.raditha.com/php/java.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slei</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-39468</link>
		<dc:creator>Slei</dc:creator>
		<pubDate>Wed, 13 Aug 2008 19:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-39468</guid>
		<description>Hi,
I installed the php-java-bridge , but still having this error:
Fatal error: Class &#039;Java&#039; not found

I didn&#039;t install PHP5 from .deb package, I compiled the source to install PHP5 and Apache2.

What I have to do? do I have to recompile PHP5 with Java, but when I run ./configure --help there is no --with-java option in PHP5....

Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I installed the php-java-bridge , but still having this error:<br />
Fatal error: Class &#8216;Java&#8217; not found</p>
<p>I didn&#8217;t install PHP5 from .deb package, I compiled the source to install PHP5 and Apache2.</p>
<p>What I have to do? do I have to recompile PHP5 with Java, but when I run ./configure &#8211;help there is no &#8211;with-java option in PHP5&#8230;.</p>
<p>Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinu</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-38578</link>
		<dc:creator>vinu</dc:creator>
		<pubDate>Mon, 14 Jul 2008 07:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-38578</guid>
		<description>Here&#039;s another Article which shows how to bridge PHP an Java in Windows using Apache Tomcat:
http://www.hiveminds.co.uk/node/3814</description>
		<content:encoded><![CDATA[<p>Here&#8217;s another Article which shows how to bridge PHP an Java in Windows using Apache Tomcat:<br />
<a href="http://www.hiveminds.co.uk/node/3814" rel="nofollow">http://www.hiveminds.co.uk/node/3814</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Shaffer</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-34498</link>
		<dc:creator>Charles Shaffer</dc:creator>
		<pubDate>Tue, 10 Jun 2008 20:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-34498</guid>
		<description>vinu,

Well I think it is working now.  I had to put a reference in the java_require to a class that is imported in the class I developed.  

java_require(&quot;/usr/lib/jclass/U2web.jar;/usr/lib/jclass/asjava.zip&quot;);

Thanks for all of your help.</description>
		<content:encoded><![CDATA[<p>vinu,</p>
<p>Well I think it is working now.  I had to put a reference in the java_require to a class that is imported in the class I developed.  </p>
<p>java_require(&#8220;/usr/lib/jclass/U2web.jar;/usr/lib/jclass/asjava.zip&#8221;);</p>
<p>Thanks for all of your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Shaffer</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-34492</link>
		<dc:creator>Charles Shaffer</dc:creator>
		<pubDate>Tue, 10 Jun 2008 18:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-34492</guid>
		<description>vinu,

Sorry for all of the questions.

After changing the java_require to 
java_require(&quot;/usr/lib/jclass/&quot;);

get this error
CreateInstance failed: new com.ntnbower.t4mutil.U2. Cause: java.lang.ClassNotFoundException: Could not find com.ntnbower.t4mutil.U2 in java_require() path. Please check the path and the SEL and File permissions

The class is in a jar file called U2web.jar  jar tvf U2web.jar
0 Tue Jun 10 13:10:58 CDT 2008 META-INF/
71 Tue Jun 10 13:10:58 CDT 2008 META-INF/MANIFEST.MF
1931 Tue Jun 10 13:10:22 CDT 2008 com/ntnbower/t4mutil/U2.class

Permissions on the jclas directory are 755

Don&#039;t know what SEL is referring to.

PHP code
IsValidPartNumber($partnumber);
print &quot;Hello&quot;;
?&gt;

Just trying to get past the instantiation at this point.</description>
		<content:encoded><![CDATA[<p>vinu,</p>
<p>Sorry for all of the questions.</p>
<p>After changing the java_require to<br />
java_require(&#8220;/usr/lib/jclass/&#8221;);</p>
<p>get this error<br />
CreateInstance failed: new com.ntnbower.t4mutil.U2. Cause: java.lang.ClassNotFoundException: Could not find com.ntnbower.t4mutil.U2 in java_require() path. Please check the path and the SEL and File permissions</p>
<p>The class is in a jar file called U2web.jar  jar tvf U2web.jar<br />
0 Tue Jun 10 13:10:58 CDT 2008 META-INF/<br />
71 Tue Jun 10 13:10:58 CDT 2008 META-INF/MANIFEST.MF<br />
1931 Tue Jun 10 13:10:22 CDT 2008 com/ntnbower/t4mutil/U2.class</p>
<p>Permissions on the jclas directory are 755</p>
<p>Don&#8217;t know what SEL is referring to.</p>
<p>PHP code<br />
IsValidPartNumber($partnumber);<br />
print &#8220;Hello&#8221;;<br />
?&gt;</p>
<p>Just trying to get past the instantiation at this point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinu</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-34490</link>
		<dc:creator>vinu</dc:creator>
		<pubDate>Tue, 10 Jun 2008 17:58:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-34490</guid>
		<description>Hi Charles, 
Change your Java require line to :
java_require(â€™/usr/lib/jclass/â€™); 
It just needs the path to the class file. The jar file should not be specified in the the java_require line.</description>
		<content:encoded><![CDATA[<p>Hi Charles,<br />
Change your Java require line to :<br />
java_require(â€™/usr/lib/jclass/â€™);<br />
It just needs the path to the class file. The jar file should not be specified in the the java_require line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Shaffer</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-34482</link>
		<dc:creator>Charles Shaffer</dc:creator>
		<pubDate>Tue, 10 Jun 2008 14:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-34482</guid>
		<description>Hello vinu,

I got side tracked for a while, but I&#039;m back on the PHP-Java Bridge now.  I have created a jar file called U2web.jar and put it in /usr/lib/jclass/ directory. /usr/lib/jclass/U2web.jar is in the CLASSPATH.  In a standard java program I import import com.ntnbower.t4mutil.*; and this works fine.

In the php code I include 
java_require(&#039;/usr/lib/jclass/U2web.jar&#039;);  When I create the new object I use 
$U2 = new Java(&#039;com.ntnbower.t4mutil.U2&#039;);

It fails on test and I get this error
Unresolved external reference: java.lang.NoClassDefFoundError: asjava/uniobjects/UniSessionException. -- Unable to call constructor, see the README section &quot;Java platform issues&quot; for details

Do you know where I could find the README this refers to?</description>
		<content:encoded><![CDATA[<p>Hello vinu,</p>
<p>I got side tracked for a while, but I&#8217;m back on the PHP-Java Bridge now.  I have created a jar file called U2web.jar and put it in /usr/lib/jclass/ directory. /usr/lib/jclass/U2web.jar is in the CLASSPATH.  In a standard java program I import import com.ntnbower.t4mutil.*; and this works fine.</p>
<p>In the php code I include<br />
java_require(&#8216;/usr/lib/jclass/U2web.jar&#8217;);  When I create the new object I use<br />
$U2 = new Java(&#8216;com.ntnbower.t4mutil.U2&#8242;);</p>
<p>It fails on test and I get this error<br />
Unresolved external reference: java.lang.NoClassDefFoundError: asjava/uniobjects/UniSessionException. &#8212; Unable to call constructor, see the README section &#8220;Java platform issues&#8221; for details</p>
<p>Do you know where I could find the README this refers to?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinu</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-33932</link>
		<dc:creator>vinu</dc:creator>
		<pubDate>Thu, 05 Jun 2008 19:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-33932</guid>
		<description></description>
		<content:encoded><![CDATA[<p>Ok. Here&#8217;s my guess Charles &#8211; This line may be the cause:<br />
$result = $U2->IsValidPartNumber($partnumber);<br />
If the parameter is defined as integer in Java, PHP is unable to send $partnumber to Java, since it&#8217;s taken as a string.<br />
Try:<br />
$result = $U2->IsValidPartNumber($partnumber+0);<br />
Which will implicitly change the datatype to integer. Leave the java_require with the double quotes:<br />
java_require(â€?/var/www/cs_dev/com/ntnbower/t4mutil/â€?);</p>
<p>&#8220;This bridge does not convert data dynamically like the core PHP engine does. You must do type conversion in your PHP code.&#8221;<br />
More information on this over at:<br />
<a href="http://dev2dev.bea.com/pub/a/2007/02/php-java-bridge.html" rel="nofollow">http://dev2dev.bea.com/pub/a/2007/02/php-java-bridge.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Shaffer</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-33828</link>
		<dc:creator>Charles Shaffer</dc:creator>
		<pubDate>Wed, 04 Jun 2008 21:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-33828</guid>
		<description>More progress sort of.

I discovered that by changing the quotes in the require_java statement
java_require(&#039;/var/www/cs_dev/com/ntnbower/t4mutil/U2.class&#039;);

I got rid of the parser errors.  

At run time I got
Fatal error: Call to undefined function java_require() in /var/www/cs_dev/validate_part.php on line 9

Do I need to set a path to somewhere?</description>
		<content:encoded><![CDATA[<p>More progress sort of.</p>
<p>I discovered that by changing the quotes in the require_java statement<br />
java_require(&#8216;/var/www/cs_dev/com/ntnbower/t4mutil/U2.class&#8217;);</p>
<p>I got rid of the parser errors.  </p>
<p>At run time I got<br />
Fatal error: Call to undefined function java_require() in /var/www/cs_dev/validate_part.php on line 9</p>
<p>Do I need to set a path to somewhere?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Shaffer</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-33821</link>
		<dc:creator>Charles Shaffer</dc:creator>
		<pubDate>Wed, 04 Jun 2008 19:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-33821</guid>
		<description></description>
		<content:encoded><![CDATA[<p>Vinu,</p>
<p>Progress.  Sort of.  When I add the require_java() statement the java object seems to be created OK, but there is an error further on.</p>
<p>With this code:<br />
java_require(&#8220;/var/www/cs_dev/com/ntnbower/t4mutil/U2.classâ€?);<br />
$U2 = new java(&#8216;U2&#8242;);<br />
$result = $U2-&gt;IsValidPartNumber($partnumber);<br />
if($result) print &#8220;Found&#8221;;  (line 13)<br />
else print &#8220;Not Found&#8221;;</p>
<p>This error:<br />
Parse error: syntax error, unexpected T_STRING in /var/www/cs_dev/validate_part.php on line 13</p>
<p>With the require_java line commented out the error occurs when creating the new U2 object, which makes sense.</p>
<p>Do you see why the require_java call is causing the T_STRING error?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Shaffer</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-33809</link>
		<dc:creator>Charles Shaffer</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-33809</guid>
		<description>By the way,  if it matters we are using Feisty Fawn.</description>
		<content:encoded><![CDATA[<p>By the way,  if it matters we are using Feisty Fawn.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinu</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-33808</link>
		<dc:creator>vinu</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-33808</guid>
		<description>Charles,
I missed out one more point to ask. Did you set the path to the class files in your php code ? You can do that by using:

java_require(&quot;/path/to/your/classfiles/&quot;);
$U2 = new java(â€™com.ntnbower.t4mutilâ€™);
..............
..............</description>
		<content:encoded><![CDATA[<p>Charles,<br />
I missed out one more point to ask. Did you set the path to the class files in your php code ? You can do that by using:</p>
<p>java_require(&#8220;/path/to/your/classfiles/&#8221;);<br />
$U2 = new java(â€™com.ntnbower.t4mutilâ€™);<br />
&#8230;&#8230;&#8230;&#8230;..<br />
&#8230;&#8230;&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Shaffer</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-33805</link>
		<dc:creator>Charles Shaffer</dc:creator>
		<pubDate>Wed, 04 Jun 2008 15:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-33805</guid>
		<description>OK.  Downloading the self-extracting java was a mistake.  Our Linux guy helped me get rid of the self-extracting version of Java and we reinstalled the apt-get versions of java and the java bridge.  PHP is aware of java and the status is running.  It still doesn&#039;t find the java class though.  I just have a feeling this is an environment issue (PATH, CLASSPATH, ?)  but I don&#039;t know what the problem is.  Do you need to import java somehow?</description>
		<content:encoded><![CDATA[<p>OK.  Downloading the self-extracting java was a mistake.  Our Linux guy helped me get rid of the self-extracting version of Java and we reinstalled the apt-get versions of java and the java bridge.  PHP is aware of java and the status is running.  It still doesn&#8217;t find the java class though.  I just have a feeling this is an environment issue (PATH, CLASSPATH, ?)  but I don&#8217;t know what the problem is.  Do you need to import java somehow?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Shaffer</title>
		<link>http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/comment-page-1/#comment-33799</link>
		<dc:creator>Charles Shaffer</dc:creator>
		<pubDate>Wed, 04 Jun 2008 13:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.vinuthomas.com/2007/11/22/installing-the-php-java-bridge-in-ubuntu-gutsy-gibbon/#comment-33799</guid>
		<description>vinu,

Yes.  We are using the PHP that came with the Ubuntu install.  PHPINFO says Java Support is enabled and the status is running.  But java_home says no value.  I wonder if the problem is with the java install.  The error says the class Java is not found.  I downloaded the latest Java from Sun as a self-extracting file.  Was that unnecessary?</description>
		<content:encoded><![CDATA[<p>vinu,</p>
<p>Yes.  We are using the PHP that came with the Ubuntu install.  PHPINFO says Java Support is enabled and the status is running.  But java_home says no value.  I wonder if the problem is with the java install.  The error says the class Java is not found.  I downloaded the latest Java from Sun as a self-extracting file.  Was that unnecessary?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
