<?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: Reloading Java Classes 101: Objects, Classes and ClassLoaders</title>
	<atom:link href="http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/</link>
	<description>Improving Java Development</description>
	<lastBuildDate>Fri, 12 Mar 2010 08:39:24 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Helen Neely</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-16419</link>
		<dc:creator>Helen Neely</dc:creator>
		<pubDate>Wed, 10 Mar 2010 17:47:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-16419</guid>
		<description>This is great, I saw the link on TheServerSide and knew I had to check it out.
Nice article</description>
		<content:encoded><![CDATA[<p>This is great, I saw the link on TheServerSide and knew I had to check it out.<br />
Nice article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RJC501: How Much Does Turnaround Cost? &#124; ZeroTurnaround.com</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-16395</link>
		<dc:creator>RJC501: How Much Does Turnaround Cost? &#124; ZeroTurnaround.com</dc:creator>
		<pubDate>Tue, 09 Mar 2010 13:16:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-16395</guid>
		<description>[...] RJC101: Objects, Classes and ClassLoaders [...]</description>
		<content:encoded><![CDATA[<p>[...] RJC101: Objects, Classes and ClassLoaders [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reloading Java Classes 401: HotSwap and JRebel — Behind the Scenes &#124; ZeroTurnaround.com</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-15715</link>
		<dc:creator>Reloading Java Classes 401: HotSwap and JRebel — Behind the Scenes &#124; ZeroTurnaround.com</dc:creator>
		<pubDate>Thu, 11 Feb 2010 14:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-15715</guid>
		<description>[...] RJC101: Objects, Classes and ClassLoaders [...]</description>
		<content:encoded><![CDATA[<p>[...] RJC101: Objects, Classes and ClassLoaders [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reloading Java Classes 301: Classloaders in Web Development &#8212; Tomcat, GlassFish, OSGi, Tapestry 5 and so on &#124; ZeroTurnaround.com</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-15565</link>
		<dc:creator>Reloading Java Classes 301: Classloaders in Web Development &#8212; Tomcat, GlassFish, OSGi, Tapestry 5 and so on &#124; ZeroTurnaround.com</dc:creator>
		<pubDate>Thu, 14 Jan 2010 09:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-15565</guid>
		<description>[...] RJC101: Objects, Classes and ClassLoaders [...]</description>
		<content:encoded><![CDATA[<p>[...] RJC101: Objects, Classes and ClassLoaders [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reloading Java Classes 201: How do ClassLoader leaks happen? &#124; ZeroTurnaround.com</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-14339</link>
		<dc:creator>Reloading Java Classes 201: How do ClassLoader leaks happen? &#124; ZeroTurnaround.com</dc:creator>
		<pubDate>Wed, 09 Dec 2009 12:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-14339</guid>
		<description>[...] RJC101: Objects, Classes and ClassLoaders [...]</description>
		<content:encoded><![CDATA[<p>[...] RJC101: Objects, Classes and ClassLoaders [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Speeding up development with JRebel</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-14171</link>
		<dc:creator>Speeding up development with JRebel</dc:creator>
		<pubDate>Fri, 04 Dec 2009 12:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-14171</guid>
		<description>[...] load the new class file in the JVM&#8217;s memory. A more detailed explanation is listed at the JRebel blog &#8211; in practice this means the only thing we have to do after updating a class file is [...]</description>
		<content:encoded><![CDATA[<p>[...] load the new class file in the JVM&#8217;s memory. A more detailed explanation is listed at the JRebel blog &#8211; in practice this means the only thing we have to do after updating a class file is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-13931</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 25 Nov 2009 22:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-13931</guid>
		<description>Hi Evgenij,

Understood - this is exactly what I tried.
It seems that if the example.Example is in the \launching classpath\ - i.e. \.\ or root, it works. 

However, If i place the example/Example somewhere else, and then use:

= new URL(\file:/Location off class path\);

The code breaks.

Do you have an explanation for this behavior?

Thank you.</description>
		<content:encoded><![CDATA[<p>Hi Evgenij,</p>
<p>Understood &#8211; this is exactly what I tried.<br />
It seems that if the example.Example is in the \launching classpath\ &#8211; i.e. \.\ or root, it works. </p>
<p>However, If i place the example/Example somewhere else, and then use:</p>
<p>= new URL(\file:/Location off class path\);</p>
<p>The code breaks.</p>
<p>Do you have an explanation for this behavior?</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jevgeni Kabanov</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-13918</link>
		<dc:creator>Jevgeni Kabanov</dc:creator>
		<pubDate>Tue, 24 Nov 2009 22:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-13918</guid>
		<description>@Rob

&quot;example&quot; is a Java package and is part of the class name. When URLClassLoader looks for example.Example it really searches all classpath URLs for &quot;example/Example.class&quot;.</description>
		<content:encoded><![CDATA[<p>@Rob</p>
<p>&#8220;example&#8221; is a Java package and is part of the class name. When URLClassLoader looks for example.Example it really searches all classpath URLs for &#8220;example/Example.class&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-13914</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 24 Nov 2009 18:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-13914</guid>
		<description>It seems that the example works only if the class is in the main classpath (i.e. in &quot;./example&quot; directory).

If you put the class in a different directory, the code breaks with ClassNotFoundException, even if you modify the URL generation code. 

Why is that?

//cp = new URL(loc.substring(0, loc.length() - resName.length()));
cp = new URL(&quot;file:/D:/temp&quot;);

     [java] Exception in thread &quot;Thread-0&quot; java.lang.RuntimeException: java.lang.ClassNotFoundException: example.Example
     [java] 	at example.DynaClassFactory.newInstance(DynaClassFactory.java:32)
     [java] 	at example.Main.run(Main.java:19)
     [java] 	at java.lang.Thread.run(Thread.java:619)</description>
		<content:encoded><![CDATA[<p>It seems that the example works only if the class is in the main classpath (i.e. in &#8220;./example&#8221; directory).</p>
<p>If you put the class in a different directory, the code breaks with ClassNotFoundException, even if you modify the URL generation code. </p>
<p>Why is that?</p>
<p>//cp = new URL(loc.substring(0, loc.length() &#8211; resName.length()));<br />
cp = new URL(&#8220;file:/D:/temp&#8221;);</p>
<p>     [java] Exception in thread &#8220;Thread-0&#8243; java.lang.RuntimeException: java.lang.ClassNotFoundException: example.Example<br />
     [java] 	at example.DynaClassFactory.newInstance(DynaClassFactory.java:32)<br />
     [java] 	at example.Main.run(Main.java:19)<br />
     [java] 	at java.lang.Thread.run(Thread.java:619)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cem Koc</title>
		<link>http://www.zeroturnaround.com/blog/reloading-objects-classes-classloaders/comment-page-1/#comment-11309</link>
		<dc:creator>Cem Koc</dc:creator>
		<pubDate>Wed, 11 Nov 2009 08:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeroturnaround.com/?p=173#comment-11309</guid>
		<description>Excellent!!! 

Maladets Jevgeni !</description>
		<content:encoded><![CDATA[<p>Excellent!!! </p>
<p>Maladets Jevgeni !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
