<?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>TIBCO Admin &#187; java</title>
	<atom:link href="http://tibcoadmin.com/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://tibcoadmin.com</link>
	<description>thoughts and actions</description>
	<lastBuildDate>Thu, 22 Jul 2010 14:59:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>TIBCO Hawk NoClassDefFoundError issue</title>
		<link>http://tibcoadmin.com/tibco/hawk/tibco-hawk-noclassdeffounderror-issue/</link>
		<comments>http://tibcoadmin.com/tibco/hawk/tibco-hawk-noclassdeffounderror-issue/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 16:55:54 +0000</pubDate>
		<dc:creator>Serge</dc:creator>
				<category><![CDATA[hawk]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[tibco]]></category>

		<guid isPermaLink="false">http://tibcoadmin.com/?p=332</guid>
		<description><![CDATA[On the Windows platform you can experience java.lang.NoClassDefFound Error when starting Hawk Agent or Hawk Display. In my example I use TIBCO EMS as a transport for Hawk messaging and issue arose after upgrade EMS from version 4 to version 5 on the server. The reason is that in EMS version 5.1 paths to java [...]]]></description>
			<content:encoded><![CDATA[<p>On the Windows platform you can experience java.lang.NoClassDefFound Error when starting Hawk Agent or Hawk Display. <a href="http://tibcoadmin.com/wp-content/uploads/2010/01/hawk-noclassdeffounderror.png"><img class="alignright size-medium wp-image-334" title="hawk-noclassdeffounderror" src="http://tibcoadmin.com/wp-content/uploads/2010/01/hawk-noclassdeffounderror-300x85.png" alt="" width="300" height="85" /></a>In my example I use TIBCO EMS as a transport for Hawk messaging and issue arose after upgrade EMS from version 4 to version 5 on the server. The reason is that in EMS version 5.1 paths to java class libraries are: <code>&lt;Tibco_Root&gt;\ems\5.1\lib\jms.jar; &lt;Tibco_Root&gt;\ems\5.1\lib\tibjms.jar; &lt;Tibco_Root&gt;\ems\5.1\lib\tibrvjms.jar; &lt;Tibco_Root&gt;\ems\5.1\lib\tibcrypt.jar;</code><br />
In EMS 4.x. paths were: <code>&lt;Tibco_Root&gt;\ems\clients\java\jms.jar; &lt;Tibco_Root&gt;\ems\clients\java\tibjms.jar; &lt;Tibco_Root&gt;\ems\clients\java\tibrvjms.jar; &lt;Tibco_Root&gt;\ems\clients\java\tibcrypt.jar; &lt;Tibco_Root&gt;\ems\clients\java\jaxp.jar;</code> and they remained in the Hawk configuration.</p>
<p>On windows this configuration is stored <strong>in the registry</strong>. <a href="http://tibcoadmin.com/wp-content/uploads/2010/01/hawk-registry.png"><img class="alignleft size-medium wp-image-336" title="hawk-registry" src="http://tibcoadmin.com/wp-content/uploads/2010/01/hawk-registry-300x64.png" alt="" width="300" height="64" /></a>Just open regedit and modify three classpath strings under HKLM\SOFTWARE\Tibco Software\TIB/Hawk\&lt;version&gt;.</p>
<p>For TIBCO Rendezvous transport situation can be the same, if path to used jar <code>&lt;Tibco_Root&gt;\tibrv\lib\tibrvj.jar;</code> was changed.</p>
<p>About classpath and Hawk. In general, NoClassDefFoundError is a Java (<acronym title="Java Virtual Machine">JVM</acronym>) error that occurs when a class needed to run a Java program cannot be found. Here are Hawk is Java program and classes (a set of dynamically loadable libraries that Java applications can call at runtime) in the jar files mentioned above. Classpath is an argument that tells the JVM where to look for user-defined classes and packages in Java programs.</p>
<p>On Unix in the <strong>startagent</strong> startup script for TIBCO Hawk Agent for example, you can find something like this:<br />
<code># If EMS_ROOT is set, add EMS jars files.<br />
if [ ! -z "$EMS_ROOT" ]; then<br />
JARFILE="$JARFILE:$EMS_ROOT/clients/java/jms.jar"<br />
JARFILE="$JARFILE:$EMS_ROOT/clients/java/tibjms.jar"<br />
JARFILE="$JARFILE:$EMS_ROOT/clients/java/tibrvjms.jar"<br />
JARFILE="$JARFILE:$EMS_ROOT/clients/java/tibcrypt.jar"<br />
fi<br />
# Add jar files for RV.<br />
JARFILE="$JARFILE:$RV_ROOT/lib/tibrvj.jar"<br />
# Add existing CLASSPATH environment variable to class path.<br />
JARFILE="$JARFILE:$CLASSPATH"<br />
</code></p>
<p>Here are the same classes and classpath variable. So, please keep in mind this.</p>
<div class='sociable'><div><span class='sociable-tagline'><br><i>share and enjoy:</i></span></div><ul><li><a rel='nofollow' target='_blank'  href='http://twitter.com/home?status=TIBCO%20Hawk%20NoClassDefFoundError%20issue%20-%20http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F'><img src='http://tibcoadmin.com/wp-content/plugins/sociable-30/images/default/16/twitter.png' class='sociable-img sociable-hovers ' title='Twitter' alt='Twitter' /></a></li><li><a rel='nofollow' target='_blank'  href='http://www.google.com/reader/link?url=http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F&amp;title=TIBCO%20Hawk%20NoClassDefFoundError%20issue&amp;srcURL=http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F&amp;srcTitle=TIBCO+Admin+thoughts+and+actions'><img src='http://tibcoadmin.com/wp-content/plugins/sociable-30/images/default/16/googlebuzz.png' class='sociable-img sociable-hovers ' title='Google Buzz' alt='Google Buzz' /></a></li><li><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F&amp;t=TIBCO%20Hawk%20NoClassDefFoundError%20issue'><img src='http://tibcoadmin.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a></li><li><a rel='nofollow' target='_blank'  href='http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F&amp;title=TIBCO%20Hawk%20NoClassDefFoundError%20issue&amp;source=TIBCO+Admin+thoughts+and+actions&amp;summary=On%20the%20Windows%20platform%20you%20can%20experience%20java.lang.NoClassDefFound%20Error%20when%20starting%20Hawk%20Agent%20or%20Hawk%20Display.%20In%20my%20example%20I%20use%20TIBCO%20EMS%20as%20a%20transport%20for%20Hawk%20messaging%20and%20issue%20arose%20after%20upgrade%20EMS%20from%20version%204%20to%20version%205%20on%20the%20'><img src='http://tibcoadmin.com/wp-content/plugins/sociable-30/images/default/16/linkedin.png' class='sociable-img sociable-hovers ' title='LinkedIn' alt='LinkedIn' /></a></li><li><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F&amp;title=TIBCO%20Hawk%20NoClassDefFoundError%20issue&amp;bodytext=On%20the%20Windows%20platform%20you%20can%20experience%20java.lang.NoClassDefFound%20Error%20when%20starting%20Hawk%20Agent%20or%20Hawk%20Display.%20In%20my%20example%20I%20use%20TIBCO%20EMS%20as%20a%20transport%20for%20Hawk%20messaging%20and%20issue%20arose%20after%20upgrade%20EMS%20from%20version%204%20to%20version%205%20on%20the%20'><img src='http://tibcoadmin.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a></li><li><a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F&amp;title=TIBCO%20Hawk%20NoClassDefFoundError%20issue&amp;notes=On%20the%20Windows%20platform%20you%20can%20experience%20java.lang.NoClassDefFound%20Error%20when%20starting%20Hawk%20Agent%20or%20Hawk%20Display.%20In%20my%20example%20I%20use%20TIBCO%20EMS%20as%20a%20transport%20for%20Hawk%20messaging%20and%20issue%20arose%20after%20upgrade%20EMS%20from%20version%204%20to%20version%205%20on%20the%20'><img src='http://tibcoadmin.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a></li><li><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F'><img src='http://tibcoadmin.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a></li><li><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F&amp;title=TIBCO%20Hawk%20NoClassDefFoundError%20issue'><img src='http://tibcoadmin.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a></li><li><a rel='nofollow' target='_blank'  href='mailto:?subject=TIBCO%20Hawk%20NoClassDefFoundError%20issue&amp;body=http%3A%2F%2Ftibcoadmin.com%2Ftibco%2Fhawk%2Ftibco-hawk-noclassdeffounderror-issue%2F'><img src='http://tibcoadmin.com/wp-content/plugins/sociable-30/images/default/16/email_link.png' class='sociable-img sociable-hovers ' title='email' alt='email' /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://tibcoadmin.com/tibco/hawk/tibco-hawk-noclassdeffounderror-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
