<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Joint Compilation with groovyc' | Pragmatic Forums</title>
    <link>https://forums.pragprog.com/forums/55/topics/321</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Joint Compilation with groovyc posted by Rajagopalan Raghavan @ Wed, 30 Jul 2008 15:50:19 -0000</title>
      <description>&lt;p&gt;I haven&amp;#8217;t tried this but &amp;#8216;cut &amp;#38; pasted&amp;#8217; from &lt;a href="http://groovy.codehaus.org/Eclipse+Plugin"&gt;http://groovy.codehaus.org/Eclipse+Plugin&lt;/a&gt; &amp;#8211; in a nutshell bin-groovy folder should be default output folder for your java application.&lt;/p&gt;


	&lt;p&gt;Create a Groovy Project&lt;/p&gt;


	&lt;p&gt;To create a basic Groovy project in Eclipse perform the following steps:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Go to: File -&amp;gt; New -&amp;gt; Project&lt;/li&gt;
		&lt;li&gt;Select Java Project and press Next&lt;/li&gt;
		&lt;li&gt;In the Project Name field enter the name of your project (GroovyJava for this example)&lt;/li&gt;
		&lt;li&gt;Under Project Layout select Create separate source and output folders and press Finish&lt;/li&gt;
		&lt;li&gt;In the Package Explorer find the newly created project, right click, and select Groovy -&amp;gt; Add Groovy Nature&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;So far you should have a src folder, a bin-groovy folder, and several libraries. There is also a bin folder that was created by Eclipse, but is hidden due to exclusion filters. The next steps are needed to make the bin-groovy folder the default output folder, and to connect it to the src folder so that the debugger will know where to find the associated source and classes:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;In the Package Explorer, right click on the &amp;#8220;GroovyJava&amp;#8221; project, and select: Build Path -&amp;gt; Configure Build Path&lt;/li&gt;
		&lt;li&gt;Select the Source tab and then use the Browse button to change the Default Output Folder from bin to bin-groovy&lt;/li&gt;
		&lt;li&gt;Press OK, OK&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;This will expose the bin folder in the Package Explorer. I&amp;#8217;m not sure why the plugin creates a bin-groovy directory. Perhaps there are other &amp;#8220;bin&amp;#8221; files that are best kept separate from the Groovy classes, or perhaps one of the original versions of Eclipse didn&amp;#8217;t create a &amp;#8220;bin&amp;#8221; directory automatically. Some day when someone has a clear idea of the usefulness of this, or lack thereof, we can clean up my instructions.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Jul 2008 15:50:19 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:55:321:3844</guid>
      <author>Rajagopalan Raghavan</author>
      <link>https://forums.pragprog.com/forums/55/topics/321</link>
    </item>
    <item>
      <title>Joint Compilation with groovyc posted by Venkat Subramaniam @ Tue, 29 Jul 2008 19:18:52 -0000</title>
      <description>&lt;p&gt;Hi, I suggest that you post a request (if you&amp;#8217;ve not done so already) to the Groovy mailing list regarding tools integration. Thanks,&lt;/p&gt;</description>
      <pubDate>Tue, 29 Jul 2008 19:18:52 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:55:321:3836</guid>
      <author>Venkat Subramaniam</author>
      <link>https://forums.pragprog.com/forums/55/topics/321</link>
    </item>
    <item>
      <title>Joint Compilation with groovyc posted by St Clair S Clarke @ Sat, 15 Mar 2008 03:53:08 -0000</title>
      <description>&lt;p&gt;Hello,&lt;/p&gt;


	&lt;p&gt;How can I use joint compilation with Eclipse &lt;span class="caps"&gt;IDE&lt;/span&gt; v3.3 or 3.4.&lt;/p&gt;


	&lt;p&gt;I am asking because Programming Groovy states that mixing both Groovy and Java code is allowed, although other authors suggest compileing Java src to the bin direcotory and Groovy src to bin-groovy directory, the default for GroovyEclipse plugin.&lt;/p&gt;


	&lt;p&gt;When I compile to the bin and bin-groovy directory, the imported, &lt;strong&gt;calling any compiled groovy class from a java class results in a ClassNotFoundException&lt;/strong&gt;. How can this be corrected.&lt;/p&gt;</description>
      <pubDate>Sat, 15 Mar 2008 03:53:08 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:55:321:2451</guid>
      <author>St Clair S Clarke</author>
      <link>https://forums.pragprog.com/forums/55/topics/321</link>
    </item>
  </channel>
</rss>
