<?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: Compilation Struggles with Java 6 ScriptEngine, JavaScript, and Maven</title>
	<atom:link href="http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/</link>
	<description>Ruminations about innovation and software by Rob Di Marco</description>
	<lastBuildDate>Tue, 06 Apr 2010 15:52:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Frank</title>
		<link>http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/comment-page-1/#comment-398</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 02 Mar 2010 22:15:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/#comment-398</guid>
		<description>Thanks, I had this problem while using Ant. The solution is similar, simply specify the &quot;bootclasspath&quot; attribute of the Javac task.</description>
		<content:encoded><![CDATA[<p>Thanks, I had this problem while using Ant. The solution is similar, simply specify the &#8220;bootclasspath&#8221; attribute of the Javac task.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hari</title>
		<link>http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/comment-page-1/#comment-77</link>
		<dc:creator>hari</dc:creator>
		<pubDate>Tue, 16 Oct 2007 09:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/#comment-77</guid>
		<description>it helped me a lot in completing my task</description>
		<content:encoded><![CDATA[<p>it helped me a lot in completing my task</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom McQueeney</title>
		<link>http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/comment-page-1/#comment-22</link>
		<dc:creator>Tom McQueeney</dc:creator>
		<pubDate>Wed, 08 Aug 2007 17:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/#comment-22</guid>
		<description>Rob,

I know what you&#039;re experiencing as far as being able to consistently share Java objects with a script interpreter.

Two possible solutions. First, embed Rhino directly using the Rhino ScriptEngine implementation. That way, you&#039;re dependent at build time on the Mozilla js.jar rather than the Sun rt.jar. I posted a more-detailed explanation on my reply to your comment on my blog, http://mcqueeney.com/roller/page/tom?entry=returning_from_ruby_or_javascript

The second technique I&#039;ve used to avoid adding rt.jar to a build classpath is to use Class.forName trickery. Code the &quot;sun.xxx.yyy.Zzz&quot; class as a string in Class.forName and cast the new instance to a generic super type that isn&#039;t in rt.jar. It sounds like this technique might not work for you, short of casting the instance to an Object, if the NativeArray class can&#039;t be cast somehow to a java.lang.reflect.Array type or equivalent.

Good luck.

-Tom</description>
		<content:encoded><![CDATA[<p>Rob,</p>
<p>I know what you&#8217;re experiencing as far as being able to consistently share Java objects with a script interpreter.</p>
<p>Two possible solutions. First, embed Rhino directly using the Rhino ScriptEngine implementation. That way, you&#8217;re dependent at build time on the Mozilla js.jar rather than the Sun rt.jar. I posted a more-detailed explanation on my reply to your comment on my blog, <a href="http://mcqueeney.com/roller/page/tom?entry=returning_from_ruby_or_javascript" rel="nofollow">http://mcqueeney.com/roller/page/tom?entry=returning_from_ruby_or_javascript</a></p>
<p>The second technique I&#8217;ve used to avoid adding rt.jar to a build classpath is to use Class.forName trickery. Code the &#8220;sun.xxx.yyy.Zzz&#8221; class as a string in Class.forName and cast the new instance to a generic super type that isn&#8217;t in rt.jar. It sounds like this technique might not work for you, short of casting the instance to an Object, if the NativeArray class can&#8217;t be cast somehow to a java.lang.reflect.Array type or equivalent.</p>
<p>Good luck.</p>
<p>-Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DZone - New links</title>
		<link>http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/comment-page-1/#comment-20</link>
		<dc:creator>DZone - New links</dc:creator>
		<pubDate>Wed, 08 Aug 2007 05:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.innovationontherun.com/compilation-struggles-with-java-6-scriptengine-javascript-and-maven/#comment-20</guid>
		<description>&lt;!--%kramer-ref-pre%--&gt;[...] commentsSaveShare Tags: tools, windows                1 [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><!--%kramer-ref-pre%-->[...] commentsSaveShare Tags: tools, windows                1 [...]<!--%kramer-ref-post%--></p>
]]></content:encoded>
	</item>
</channel>
</rss>
