<?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>Andy Gibson &#187; Eclipse</title>
	<atom:link href="http://www.andygibson.net/blog/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andygibson.net/blog</link>
	<description>Open Source Projects &#38; Technical Writings</description>
	<lastBuildDate>Thu, 02 Feb 2012 14:33:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing JBoss Developer Tools</title>
		<link>http://www.andygibson.net/blog/tutorial/installing-jboss-developer-tools/</link>
		<comments>http://www.andygibson.net/blog/tutorial/installing-jboss-developer-tools/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:55:01 +0000</pubDate>
		<dc:creator>Andy Gibson</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[JBoss]]></category>

		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=1126</guid>
		<description><![CDATA[This article describes how to install the JBoss Developer Tools plug-ins into the Eclipse IDE. You should already have Eclipse installed and configured. Prerequisites Installing and Configuring Eclipse JBoss Developer Tools is a bundle of Eclipse plug-ins for Eclipse which help when developing applications using a various frameworks, some of which are JBoss specific and [...]]]></description>
			<content:encoded><![CDATA[<p>This article describes how to install the JBoss Developer Tools plug-ins into the Eclipse IDE. You should already have Eclipse installed and configured.<br />
<span id="more-1126"></span></p>
<div class="prereq">
<ul><lh>Prerequisites</lh></p>
<li><a href="http://www.andygibson.net/blog/tutorial/installing-and-configuring-eclipse/">Installing and Configuring Eclipse</a></li>
</ul>
</div>
<p>JBoss Developer Tools is a bundle of Eclipse plug-ins for Eclipse which help when developing applications using a various frameworks, some of which are JBoss specific and some which are standards based, but still JBoss related. In particular this helps developers get to grips with Java EE 6 web development using JSF, CDI, EJB and JPA by integrating the use of these individual frameworks in the IDE.</p>
<div class="sidenote_right">
<h1>64 Bit Windows</h1>
<p>Currently, JBoss Developer Tools does not support 64 bit JVMs on Windows. There is a version for 64 bit Linux, but not for 64 bit windows. Therefore you will need to install a 32-bit JDK to use them, and we will tell Eclipse to use that JDK instead (see [node:3] for more details). This also means you will be unable to use a 64-bit version of Eclipse.</p>
</div>
<p>For example, it provides tooling for the JPA standard and specifically the Hibernate implementation of JPA. Of most interest is the new Java Contexts and Dependency Injection (CDI , JSR 299) tooling which can go hand in hand with their excellent JSF page editing.</p>
<p>You should start with an Eclipse installation that will support JBoss Tools (see the <a href="http://www.jboss.org/tools/download.html">download page</a> for more details on which Eclipse versions are supported.</p>
<h2>Prerequisite Eclipse Plug-ins</h2>
<p>Before we install JBoss tools, there are a some additional plug-ins that need installing first as prerequisites as described in the JBoss Tools install <a href="http://download.jboss.org/jbosstools/updates/stable/galileo/" target="_blank">instructions</a>.  These plug-ins, as well as the JBoss Tools plug-ins themselves will be installed using the Eclipse update manager which is opened by opening the menu <em>Help-&gt;Install New Software&#8230;</em>.  This manager has a list of URLs that Eclipse can use to locate and download plug-ins from remote locations called update sites.</p>
<ol>
<li>Open the install manager by clicking the menu item  <em>Help-&gt;Install New Software&#8230;</em>.</li>
<li>In the install manager, click the <em>Add</em> button to add a new update site.</li>
<li>In the dialog that pops up, add BIRT as the  Name, and set Location to <a href="http://download.eclipse.org/birt/update-site/2.5/">http://download.eclipse.org/birt/update-site/2.5/</a>. Click OK to close the dialog.</li>
<li>Back in the install manager, in the top drop down box select the BIRT site and you should see a list of available plug-ins appear in the main list area</li>
<li>Click the check box next to each of the plug-ins and click <em>Next</em>.</li>
<li>Once you agree to the licenses and click <em>Finish</em> Eclipse will download and install the plug-ins. Once complete, it will ask if you want to restart Eclipse now or later. Restart Eclipse now before we install additional plug-ins.</li>
<li>Repeat the above steps for the Maven m2Eclipse plug-ins. In the &#8220;Add Site&#8221; dialog, set the Name to m2Eclipse and the Location to <a href="http://m2eclipse.sonatype.org/sites/m2e/">http://m2eclipse.sonatype.org/sites/m2e/</a>.</li>
<li>Once added, select the m2Eclipse site and check all the items in the plug-in list.</li>
<li>Once the m2Eclipse plug-ins are installed, opt to restart eclipse</li>
</ol>
<h2>Installing JBoss Tools</h2>
<p>Now we will install the plug-ins for Boss Tools, again using update sites as in the previous steps.</p>
<ol>
<li>Click <em>Help-&gt;Install New Software&#8230;</em> to open the install manager.</li>
<li>Add a new site called JBoss Tools. The Location for the site is <a href="http://download.jboss.org/jbosstools/updates/stable/galileo/">http://download.jboss.org/jbosstools/updates/stable/galileo/</a>. Click <em>OK</em>.</li>
<li>In the install manager, select the JBoss Tools site to download plug-ins from. You should see a long list of available plug-ins. Again, check them all and click <em>Next</em>.</li>
<li> Once it has calculated requirements and dependencies, you should be able to click <em>Next</em> again, and check the license agreement and click <em>Next</em>.</li>
<li>Finally, it will download and install the JBoss Tools plug-ins. This may take a while since the contents are in the region of just under 100 megabytes.</li>
<li>Again, once complete, you should restart Eclipse</li>
<li>You are done, you should now have a working installation of JBoss Developer Tools</li>
</ol>
<h2>Dependency Issues</h2>
<p>Eclipse can have problems with missing dependencies indicating that there are missing required plug-ins. In such a case, see what plug-ins are missing in the <em>Install Details</em> tab in the <em>Details</em> section.  Verify that you have downloaded the correct version of the Eclipse SDK as per the <a href="http://www.jboss.org/tools/download/">JBoss Tools instructions</a>. Also make sure you downloaded the Eclipse SDK version for Java EE. If you need to access older versions of the Eclipse SDK, you can do so from this <a href="http://download.eclipse.org/eclipse/downloads/">download page</a>. Try searching online for the error message to see if it is a common problem.</p>
<div class="notes">
<ul><lh> Next Steps</lh></p>
<li><a href="http://www.andygibson.net/blog/tutorial/installing-servers-into-eclipse/">Installing Servers Into Eclipse</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.andygibson.net/blog/tutorial/installing-jboss-developer-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Servers into Eclipse</title>
		<link>http://www.andygibson.net/blog/tutorial/installing-servers-into-eclipse/</link>
		<comments>http://www.andygibson.net/blog/tutorial/installing-servers-into-eclipse/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:53:12 +0000</pubDate>
		<dc:creator>Andy Gibson</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=1129</guid>
		<description><![CDATA[Prerequisites Installing and configuring Eclipse Download and install a web server JBoss Application Server Tomcat If you want to do some web development with Eclipse, you will need a web server for it to run on. The process for adding a server to Eclipse is usually the same for different server vendors. Typically though each [...]]]></description>
			<content:encoded><![CDATA[<div class="prereq" style="float: right;">
<ul><lh>Prerequisites</lh></p>
<li><a href="http://www.andygibson.net/blog/tutorial/installing-and-configuring-eclipse/">Installing and configuring Eclipse</a></li>
<li>Download and install a web server
<ul>
<li><a href="http://www.jboss.org/jbossas/downloads.html">JBoss Application Server</a></li>
<li><a href="http://tomcat.apache.org/">Tomcat</a></li>
</ul>
</li>
</ul>
</div>
<p>If you want to do some web development with Eclipse, you will need a web server for it to run on. The process for adding a server to Eclipse is usually the same for different server vendors. Typically though each vendor has different configuration options for setting up the server. For now, we&#8217;ll look at adding the server into the Eclipse environment.<br />
<span id="more-1129"></span></p>
<h1>Adding Servers</h1>
<p>Servers are added by letting Eclipse know what type of server you want to install and where it is installed locally. You must have already downloaded and installed a web server before adding it into the Eclipse environment.</p>
<div class="diagram alignCenter contentBox">
<img src="http://www.andygibson.net/blog/wp-content/uploads/2010/07/server_views.png" alt="Server Views in Eclipse" title="Server Views" width="311" height="438"  />
</div>
<ol>
<li>Select <em>Window-&gt;Show-&gt;Other&#8230;</em> to bring up the view selector.</li>
<li>Start typing <strong>server</strong> and you will see the view list is filtered.</li>
<li>We want the <em>Servers</em> view, <strong>not</strong> the <em>JBoss Server View</em>, that is now deprecated.</li>
<li>Double click on the <em>Servers</em> item and the view selector will close and the Servers tab will open up in the bottom half of the IDE window.</li>
<li>In the Servers window, right click and select <em>New-&gt;Server</em> to bring up the New Server dialog</li>
<div class="diagram alignCenter contentBox">
<a href="http://www.andygibson.net/blog/wp-content/uploads/2010/07/runtime_list1.png"><img src="http://www.andygibson.net/blog/wp-content/uploads/2010/07/runtime_list1-272x300.png" alt="List of runtimes installed in Eclipse" title="Runtime List" width="272" height="300" /></a>
</div>
<li>Select the appropriate server runtime for the server you are using from the list. If your server doesn&#8217;t appear in the list then click the  &#8220;Download additional server adapters&#8221; link above the list.
<ol> Adding a new server adapater</p>
<li> In the Install New Extension dialog, wait for it to finish downloading the list of available server adapters and try and find the right one for your server.</li>
<li>Once found, select your server and click <em>Next</em>, agree to any license terms and click <em>Finish</em> to install the adapter.</li>
<li>Once installed, you should restart Eclipse when asked. Upon restarting, you will need to go back to step 5 of this process except this time, your server should appear in the initial list.</li>
</ol>
</li>
<li>When you have found your server type in the list of servers, click <em>Next</em> and fill in any required details. This should mostly be about telling Eclipse in which directory the server installation is located and click <em>Next</em>. For most servers it will let you know if you are pointing it to the wrong directory or it cannot find the installed server in that directory.</li>
<li>The Add and Remove tab lets you add existing projects in the workspace to the new server. Unless you have any open projects, you don&#8217;t need to worry about this right now.</li>
<li>When you click finish, your new server should appear in the Servers panel. Click on it, expand it and right click on it, and you can see there are options for starting, stopping  and restarting the servers. When you add projects to the server, you will be able to select them for republishing.</li>
</ol>
<p>With a server installed, you can develop web applications using Eclipse and it will deploy the application for you when needed. This is if you downloaded the version of Eclipse for Java EE developers. If you download and install the m2Eclipse plugins you will be able to develop and deploy Maven web projects in Eclipse with the same benefits.</p>
<div class="notes">
<ul><lh>See Also</lh></p>
<li><a href="http://www.andygibson.net/blog/tutorial/installing-jboss-developer-tools/">Installing JBoss Developer Tools</a></li>
<li style="display:none"><a href="http://www.andygibson.net/2010/05/23/fluttercode-java-ee-6-application-archetypes">Fluttercode Java EE 6 Application Archetypes</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.andygibson.net/blog/tutorial/installing-servers-into-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring Eclipse</title>
		<link>http://www.andygibson.net/blog/tutorial/installing-and-configuring-eclipse/</link>
		<comments>http://www.andygibson.net/blog/tutorial/installing-and-configuring-eclipse/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 02:19:33 +0000</pubDate>
		<dc:creator>Andy Gibson</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=1070</guid>
		<description><![CDATA[This article shows you how to download and set up Eclipse in preparation for developing Java applications and includes configuring memory settings and if necessary alternate JDK versions. Eclipse is an Integrated Development Environment that provides a set of basic elements for a development environment. This environment is extended by different plug-ins that provide different [...]]]></description>
			<content:encoded><![CDATA[<p>This article shows you how to download and set up Eclipse in preparation for developing Java applications and includes configuring memory settings and if necessary alternate JDK versions. <span id="more-1070"></span> Eclipse is an Integrated Development Environment that provides a set of basic elements for a development environment. This environment is extended by different plug-ins that provide different features for different development tools, environments and frameworks. It is assumed the user is starting from scratch and will be downloading everything fresh. Once downloaded, we will install everything, and set up our environment.</p>
<div class="sidenote_right">
<h1>64 Bit Windows</h1>
<p>Some plug-ins do not support 64 bit JVMs on Windows, JBoss Developer Tools being one example. If you need to use these plug-ins, you will need to install a 32-bit JDK to use them, and we will configure Eclipse to use that JDK instead. This also means you will be unable to use a 64-bit version of Eclipse.
</p></div>
<h2>Installing and setting up Eclipse</h2>
<p>We&#8217;ll start by downloading the Eclipse SDK which is the base IDE that we will be installing plug-ins into. At the time of writing, Eclipse SDK 3.5.2 is the most recent version.  You need to download the version for Java EE developers since it contains most of the other required plug-ins for things like web development. You can download Eclipse from the <a href="http://www.eclipse.org/downloads/" target="_blank">Eclipse download site</a>. Once downloaded, unzip it into a folder of your choice. The zip file usually creates a directory called <code>eclipse</code> in the target directory that you unzipped the contents into.</p>
<h3>Memory Settings</h3>
<p>By default, Eclipse uses lousy memory settings, but we can alter the <code>eclipse.ini</code> file in the eclipse install directory to give us a better environment to work in. In the eclipse directory that appeared when you unzipped eclipse, there is an <code>eclipse.ini</code> file. Edit this file and you will see a section that starts with <code>-vmargs</code>. After this sections, you will see a couple of items starting with <code>-xms</code> and <code>-xmx</code>. Edit this section so that it reads something like : </p>
<pre class="brush: plain;">
-Xms256m
-Xmx512m
-XX:MaxPermSize=256m
</pre>
<p>Don&#8217;t delete any other items in this section, just replace any that are existing and add others that are not already there.</p>
<p>The values you use depends on how much memory you have, but this is a decent amount. You can go with less, or more depending on how much free memory you have. See <a href="http://blog.xam.dk/?p=58">here</a> for more details on Eclipse memory settings.</p>
<h3>Running Eclipse under a different JVM</h3>
<p>You can also tell Eclipse to run using a specific JVM or JDK in the <code>eclipse.ini</code> file by adding a <code>-vm</code> entry. You may need to do this if you have a 64-bit JVM and you need to run Eclipse under a 32-bit JVM. Another reason to add this to the configuration is because the Maven plug-ins we&#8217;ll be adding later prefers to run under a JDK instead of a JRE.</p>
<p>Open up <code>eclipse.ini</code> and add the following 2 lines :</p>
<pre class="brush: plain;">
-vm
C:\Program Files\Java\jdk1.6.xxx\bin\javaw.exe
</pre>
<p><b>Note : </b> This must be on 2 separate lines and they must be placed before the <code>-vm</code> arguments. Otherwise it will not work. </p>
<p>Now we have Eclipse installed and the environment configured, we&#8217;ll take it for a test. Run <code>eclipse.exe</code> and Eclipse should launch. If not, check that you are using a valid path and filename for the <code>-vm</code> option. If you are pointing to a 64-bit JVM and have 32-bit only plugins installed, this can cause silent failures.</p>
<p>When Eclipse starts up, if you go to <i>Help->About Eclipse</i> and the about dialog pops up. Click on the <i>Installation Details</i> button and in the window that pops up, click on the <i>Configuration</i> tab. In the big configuration listing, near the bottom of the window (you might have to scroll down a little)  you should see something like : </p>
<pre class="brush: plain;">
eclipse.vm=C:\Program Files\Java\jdk1.6.xxxx\bin\javaw.exe
eclipse.vmargs=-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m
-XX:MaxPermSize=256m
</pre>
<p>This confirms that our memory settings are being picked up, and the JDK we specified is being used.</p>
<h3>Adding Maven Support</h3>
<p>While this article doesn&#8217;t intend to cover any other plugins, Maven support in Eclipse is a rather fundamental one for getting started with projects. Here are the steps to install the m2Eclipse Maven plug-ins.</p>
<ol>
<li>Open the install manager by clicking the menu item  <i>Help->Install New Software&#8230;</i>.</li>
<li>In the install manager, click the <i>Add</i> button to add a new update site.</li>
<li>In the dialog that pops up, add m2Eclipse as the  Name, and set Location to <a href="http://m2eclipse.sonatype.org/sites/m2e/">http://m2eclipse.sonatype.org/sites/m2e/</a>. Click OK to close the dialog.</li>
<li>Select the m2Eclipse URL in the drop down and click the check box next to the Maven Integration for Eclipse plug-in in the list and click <i>Next</i>.</li>
<li>Once you agree to the licenses and click <i>Finish</i> Eclipse will download and install the plug-ins. Once complete, it will ask if you want to restart Eclipse now or later. It is best to re-start Eclipse before you start a new project or adding more plug-ins.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.andygibson.net/blog/tutorial/installing-and-configuring-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

