<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Darryl E. Clarke &#187; java</title>
	<atom:link href="http://darrylclarke.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://darrylclarke.com</link>
	<description>Linux, PHP, MySQL, Apache, Development and More . . .</description>
	<lastBuildDate>Thu, 11 Mar 2010 01:30:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Java Bridge vs. Zend Platform Java Bridge</title>
		<link>http://darrylclarke.com/2009/06/05/php-java-bridge-vs-zend-platform-java-bridge/</link>
		<comments>http://darrylclarke.com/2009/06/05/php-java-bridge-vs-zend-platform-java-bridge/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 18:50:56 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[java bridge]]></category>
		<category><![CDATA[workarounds]]></category>
		<category><![CDATA[zend platform]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/?p=194</guid>
		<description><![CDATA[A long time ago I posted some instructions on installing PHP/Java Bridge on Ubuntu and that post is getting quite a few reads, so I figured I&#8217;d post a follow up on how it was used.
Over the last year I had been using a Java Bridge from a Zend Framework application to access a Java [...]]]></description>
			<content:encoded><![CDATA[<p>A long time ago I posted some instructions on installing <a href="http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/">PHP/Java Bridge on Ubuntu</a> and that post is getting quite a few reads, so I figured I&#8217;d post a follow up on how it was used.</p>
<p>Over the last year I had been using a Java Bridge from a Zend Framework application to access a Java only API.  And really, between the two bridges there are no differences.  They both work identical, they both work great.  Would I pay Zend for Zend Platform&#8217;s Enterprise license? No.  Why? Because both bridges perform the same.  The only differences are:</p>
<ol>
<li>Zend&#8217;s Java bridge already has a function called <em>java_require</em> and the open source PHP/Java Bridge needs you to include a file.</li>
<li>PHP/Java Bridge has a <em>java_cast</em> function, and you need it.  Zend&#8217;s Java Bridge does not have, or need this.</li>
</ol>
<p>With these two differences all you need is a little code in your bootstrap (or somewhere else useful) to cover them and all is golden. Your app should work with both Java Bridges without any issue.</p>
<pre name="code" class="php">
/* no java_require() include the java.inc for PHP/Java Bridge */
if ( ! function_exists('java_require') ) {
    include "java/Java.inc";
}

/* declare this, it doesn't exist with Zend Java, but is needed for PHP/Java Bridge */
if ( ! function_exists('java_cast')) {
    function java_cast($whatever) {
        return $whatever;
    }
}</pre>
<p>There&#8217;s probably a more graceful way of checking and doing this but that&#8217;s it, and it&#8217;s worked on a multi tiered build environment for over a year now.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2009/06/05/php-java-bridge-vs-zend-platform-java-bridge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Wave Preview &#8211; Holy Shit</title>
		<link>http://darrylclarke.com/2009/06/04/google-wave-preview-holy-shit/</link>
		<comments>http://darrylclarke.com/2009/06/04/google-wave-preview-holy-shit/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 20:28:57 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[google io]]></category>
		<category><![CDATA[gwt]]></category>
		<category><![CDATA[wave]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/?p=192</guid>
		<description><![CDATA[I think Google has managed to create the most powerful multi-platform collaborative tool ever known to man.
This demo is long and very detailed but Google Wave implements so many different tools and concepts into one single point &#8212; it&#8217;s jaw dropping.
The craziest part of it is the near real-time updates, as well as the fact [...]]]></description>
			<content:encoded><![CDATA[<p>I think Google has managed to create the most powerful multi-platform collaborative tool ever known to man.</p>
<p>This demo is long and very detailed but Google Wave implements so many different tools and concepts into one single point &#8212; it&#8217;s jaw dropping.</p>
<p>The craziest part of it is the near real-time updates, as well as the fact that multiple users can edit the same documents, with complete playback of changes</p>
<p>It implements these tools (and this is a short list):</p>
<ul>
<li>Email</li>
<li>Instant Messaging</li>
<li>Image Sharing/Gallery</li>
<li>Wiki</li>
<li>Searching</li>
<li>Document Creation</li>
<li>Games</li>
<li>Maps</li>
<li>&#8230; and more</li>
</ul>
<p>On these platforms:</p>
<ul>
<li>Your web browser</li>
<li>Your blog</li>
<li>Your smart phone</li>
<li>Your [insert whatever here]</li>
</ul>
<p><a href="http://wave.google.com/">Watch the Google Wave Preview</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2009/06/04/google-wave-preview-holy-shit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google I/O 2008</title>
		<link>http://darrylclarke.com/2008/06/11/google-io-2008/</link>
		<comments>http://darrylclarke.com/2008/06/11/google-io-2008/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 04:01:27 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Conference]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[IO2008]]></category>
		<category><![CDATA[Maps]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/2008/06/11/google-io-2008/</guid>
		<description><![CDATA[I had the pleasure of attending Google I/O in San Francisco this year.  I&#8217;m only getting to posting about it now because work has been far too insane for me to even stop and think about all the glorious things I heard about during the conference.
In fact, I still find it hard to come up [...]]]></description>
			<content:encoded><![CDATA[<p>I had the pleasure of attending Google I/O in San Francisco this year.  I&#8217;m only getting to posting about it now because work has been far too insane for me to even stop and think about all the glorious things I heard about during the conference.</p>
<p>In fact, I still find it hard to come up with any one outstanding part of the conference.  It was all so awesome, and all so in depth.</p>
<p>If there is anything that I brought out of it, it&#8217;s a desire to learn more Java and figure out some ideas to deal with GWT and Android.  Those are two pretty hot topics in my mind right now.</p>
<p>I was also impressed with the Google Earth and Google Maps API integration.  That&#8217;s a pretty sweet package right there.  I love maps, and man making maps with Google is fun.</p>
<p>Hopefully I&#8217;ll be able to put together some cool things for work in the near future.  I&#8217;ve got one project requiring maps and travel data right now, so we&#8217;ll see what that brings.</p>
<p>I also have a desire to actually figure out a Rubiks Cube.  Thanks Google, it was a blast.  See you next year, I hope.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2008/06/11/google-io-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse and Ubuntu 8.04</title>
		<link>http://darrylclarke.com/2008/04/07/eclipse-and-ubuntu-804/</link>
		<comments>http://darrylclarke.com/2008/04/07/eclipse-and-ubuntu-804/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 00:13:21 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/2008/04/07/eclipse-and-ubuntu-804/</guid>
		<description><![CDATA[I was having some trouble running Eclipse 3.3 Europa on Hardy Heron.  It was unstable, crashing a lot, and hogging way more ram than it normally hogs.
Then I realized what I&#8217;d forgotten to do on this fresh install.  I forgot to simply &#8217;sudo update-java-alternatives -s java-6-sun&#8217; and voila, it works like a charm.
Eclipse doesn&#8217;t work [...]]]></description>
			<content:encoded><![CDATA[<p>I was having some trouble running Eclipse 3.3 Europa on Hardy Heron.  It was unstable, crashing a lot, and hogging way more ram than it normally hogs.</p>
<p>Then I realized what I&#8217;d forgotten to do on this fresh install.  I forgot to simply &#8217;sudo update-java-alternatives -s java-6-sun&#8217; and voila, it works like a charm.</p>
<p>Eclipse doesn&#8217;t work well with the gjc java (the &#8216;free&#8217; and default) Hopefully this little thing won&#8217;t be an issue in the future when sun java 7 (open java) is ready to rock the free world.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2008/04/07/eclipse-and-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing PHP Java Bridge on Ubuntu</title>
		<link>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/</link>
		<comments>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 16:23:17 +0000</pubDate>
		<dc:creator>Darryl Clarke</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/</guid>
		<description><![CDATA[Source Install
First, make sure all php packages are updated &#8212; if you update PHP after installing this, it will likely segfault.
For the purpose of this, I&#8217;m using Ubuntu 7.10, and Java 6 (sun-java6)

First, get the build essential, as well as php5-dev, sun java and automake

# apt-get install build-essential php5-dev sun-java6-jre \
    sun-java6-jdk [...]]]></description>
			<content:encoded><![CDATA[<h3>Source Install</h3>
<p>First, make sure all php packages are updated &#8212; if you update PHP after installing this, it will likely segfault.</p>
<p>For the purpose of this, I&#8217;m using Ubuntu 7.10, and Java 6 (sun-java6)</p>
<p><code><br />
First, get the build essential, as well as php5-dev, sun java and automake</code></p>
<pre>
# apt-get install build-essential php5-dev sun-java6-jre \
    sun-java6-jdk sun-java6-source automake</pre>
<p><code></code></p>
<p>Second, get the PHP/Java bridge source.</p>
<pre>
# cd /usr/src
# wget http://internap.dl.sourceforge.net/sourceforge/php-java-bridge/php-java-bridge_5.2.0.tar.gz
# tar xzfv php-java-bridge_5.2.0.tar.gz</pre>
<p><code></code></p>
<p>And, install.</p>
<pre>
# cd /usr/src/php-java-bridge-5.2.0
# phpize
# ./configure --with-java=/usr/lib/jvm/java-6-sun-1.6.0.03,/usr/lib/jvm/java-6-sun-1.6.0.03
# make
# chmod +x install.sh
# ./install.sh</pre>
<p>Answering the questions for the install script is fairly simple.  It looks for some tomcat stuff for the servlet portion of the Java Bridge, but we won&#8217;t be using it.</p>
<p><code></code></p>
<p>Copy *.inc to someplace it can be found.</p>
<pre>
# mkdir /usr/share/php/java
# cp *.inc /usr/share/php/java</pre>
<p><code></code></p>
<p>Testing,</p>
<pre>
# php test.php</pre>
<p>By default, java is only enabled in the command line php; to enable it in the global instances of php, edit the php.ini file and add the extension.</p>
<p><code></code></p>
<pre>
;; java.ini: Activate the PHP/Java extension

;; zend_extension = "/path/to/java.so"
extension = java.so

;; If you have installed the java-servlet.ini leave this file alone,
;; edit the servlet or standalone ini file.  Otherwise uncomment the
;; following java section and one of the following options:
[java]</pre>
<p>There are no other options required.  Make sure the java.hosts and java.servlet are disabled.  If logging is desired, that&#8217;s another story.</p>
]]></content:encoded>
			<wfw:commentRss>http://darrylclarke.com/2008/03/04/installing-php-java-bridge-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
