About

Jadira is the home for Sousan and Chris Pheby's open source projects. These are reusable open source Java modules that provide first class solutions using the most effective current JEE technologies.

Search
Tag Cloud
...
Login
« Suppressing m2e Warnings | Main | Jadira Usertype 1.9 and 2.0 »
Thursday
Jul072011

Eclipse Indigo

Eclipse Indigo is the simultaneous release of Eclipse 3.7 and a large collection of related Eclipse projects. Indigo brings a lot of previously external projects such as M2e and EGit into the Eclipse release train.

This post updates my previous quick configuration howtos covering Ganymede, Galileo, and Helios by documenting the steps to get stock Eclipse up and running with essential Eclipse plugins. The Indigo release is ready for use with many key thirdparty plugins already working, a much improved situation on the original release of Galileo. The recipe is for Windows - extrapolate as required.

1. Download Eclipse IDE for Java Developers (either eclipse-java-indigo-SR2-win32.zip for 32-bit Windows, or eclipse-java-indigo-SR2-win32-x86_64.zip for 64-bit Windows). These can be found via http://www.eclipse.org/downloads/

2. Make a folder for Eclipse somewhere called 'Eclipse', and unzip the Eclipse SDK zip file to the parent folder. I typically create c:\Java\Eclipse and unzip to c:\Java

3. Create a shortcut to Eclipse, for example:

C:\Java\Eclipse\eclipse.exe

4. Configure eclipse.ini, for example, with the following:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-clean
-vm
C:/Java/JSE6/jre/bin/server/jvm.dll
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-server
-Dcom.sun.management.jmxremote
-Declipse.p2.unsignedPolicy=allow
-Xms768m
-Xmx768m
-XX:MaxPermSize=256M
-XX:+UseParallelOldGC
-XX:+DoEscapeAnalysis
-XX:+TieredCompilation
-XX:+OptimizeStringConcat
-XX:+UseCompressedStrings

or, using the 64-bit VM:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-clean
-vm
C:/Java/JSE6/jre/bin/server/jvm.dll
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-server
-Dcom.sun.management.jmxremote
-Declipse.p2.unsignedPolicy=allow
-Xms768m
-Xmx768m
-XX:MaxPermSize=256M
-XX:+UseParallelOldGC
-XX:+DoEscapeAnalysis
-XX:+TieredCompilation
-XX:+OptimizeStringConcat
-XX:+UseCompressedStrings
-XX:+UseCompressedOops

(where the ‘vm’ argument points to your appropriate Java runtime with Eclipse - this should be at least version 6.0 and should be 32-bit or 64-bit as appropriate).

NB. Best practice is to point to a JDK rather than a JRE location.

5. Next, search for new features using the Indigo Updates (with "Show the latest version" selected).

Pick the appropriate platform features - you can safely select everything. Pick the appropriate platform features - you can safely select everything.

Typical selection could be Business Intelligence Reporting and Charting (except Eclipse BIRT Example and Eclipse BIRT Source Feature), Collaboration (except Subversive and Mylyn Context Connector - C++ Development), General Purpose Tools (Local Terminal, Memory Analyzer, Memory Analyzer (Charts), all of Remote System Explorer, RPM, SWT, and Window Builder packages), Modeling (Graphiti...), Programming Languages (JavaScript Development Tools), SOA Development (except SCA...), Testing, Web XML Java EE and OSGi Development (excluding PHP Development Tools (PDT) SDK Feature).

Also, from the Mylyn for Eclipse Indigo update site select all updates except Mylyn Context Connector: C/C++ Development, Mylyn Builds SDK, Mylyn Commons SDK, Mylyn Context SDK, Mylyn Docs SDK, Mylyn Reviews SDK, Mylyn Tasks SDK, Mylyn Tasks Tests SDK, Mylyn Versions SDK and Mylyn WikiText SDK).

6. After restarting, the following update sites can be used to add AspectJ Developer Tools, SvnKit, QuantumDB, Log4E and some other valuable plugins:

AJDT http://download.eclipse.org/tools/ajdt/37/update (Not AspectJ Development Tools Source)
AJDT M2e Configurator http://dist.springsource.org/release/AJDT/configurator/
SvnKit http://eclipse.svnkit.com/1.7.x
SubClipse http://subclipse.tigris.org/update_1.8.x
QuantumDB http://quantum.sourceforge.net/update-site
Log4E http://log4e.jayefem.de/update (note that the free version cannot be installed using the update site)
ERMaster http://ermaster.sourceforge.net/update-site/
then restart

7. After restarting again, install the following extensions from the Eclipse Marketplace: Maven Integration for Eclipse, Maven Integration for Eclipse WTP, QWickie, JBoss Tools (Indigo), Groovy-Eclipse, Atlassian Connector for Eclipse, SpringSource Tool Suite for Eclipse Indigo, JavaCC Eclipse Plugin, Apache Directory Studio, TestNG for Eclipse, EGit, GitHub Mylyn Connector, Mylyn, Bndtools)

8. Go to "Window / Preferences / Maven / Discovery" and "Open Catalog". Select Android Connector, antlr, Axis Tools m2e, buildhelper, Checkstyle m2e, Groovy-Eclipse, m2e connector for javacc-maven-plugin, m2e connector for maven-scm-plugin, m2e connector for org.codehaus.mojo:jaxb2, m2e connector for org.codehaus.mojo:xmlbeans, PMD m2e, Tyco Configurator, maven.runtime-3.0.3, m2e-cvs, m2e-egit

9. Install m2e-apt from the update site at http://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-apt

10. Other interesting plugins you might want to consider could include:

Checkstyle http://eclipse-cs.sourceforge.net/update/
LogWatcher http://graysky.sourceforge.net/
Color Editor http://www.gstaff.org/colorEditor/download.html
Scala IDE http://download.scala-ide.org/releases-29/stable/site (Not JDT Weaving for Scala or Scala IDE for Eclipse Source)
Android Development Tools https://dl-ssl.google.com/android/eclipse/

11. A couple of plugins are best installed by hand:

Download Jar Class Finder version 2.1.0 from http://www.alphaworks.ibm.com/tech/jarclassfinder/download and copy the Jar to the Eclipse/dropins/plugins subdirectory.
Download Tarlog Plugin 1.4.2 from http://code.google.com/p/tarlog-plugins/ (I used tarlog.eclipse.plugins_1.4.2.jar) and copy the Jar to the Eclipse/dropins/plugins subdirectory.

https://dl-ssl.google.com/android/eclipse/

PrintView Printer Friendly Version

EmailEmail Article to Friend

References (1)

References allow you to track sources for this article, as well as articles that were written in response to this article.

Reader Comments (2)

The solution for an issue I encountered installing the CheckStyle plugin is to remove the update site and restart then retry.

May 26, 2012 | Registered CommenterChris

If you get an error indicating that a duplicate site already exists when installing Android Developer Tools, try resolving it by changing the update site's URL from https to http.

May 27, 2012 | Registered CommenterChris

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>