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
Main | Batching Transactions for Performance with Spring »
Saturday
Jun272015

Eclipse Mars

Eclipse Mars is the simultaneous release of Eclipse 4.5 and a large collection of related Eclipse projects. Although it contains many updates unfortunately it is still not High DPI ready. You'll need to look at David Glevy's Eclipse Icon Enlarger - PhantomYdn's fork (which also like the main version includes my fixes) is ready to use. If you are going to resize the icons, make sure you finish installing everything you require first.

This post updates my previous quick configuration howtos covering previous releases by documenting the steps to get stock Eclipse up and running with essential Eclipse plugins. The recipe is for Windows - extrapolate as required. I no longer provide information for 32-bit Windows.

1. Download Eclipse IDE for Java EE (eclipse-jee-mars-R-win32-x86_64.zip). This can also 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, as follows:

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
-clean
-vm
C:/Java/JSE8/jre/bin/server/jvm.dll
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dhelp.lucene.tokenizer=standard
-server
-Dcom.sun.management.jmxremote
-Declipse.p2.unsignedPolicy=allow
-Xms1536m
-Xmx1536m
-XX:+UseG1GC
-XX:+TieredCompilation
-XX:+UseCompressedStrings
-XX:+UseCompressedOops

Modify the ‘vm’ argument so that it points to your appropriate Java runtime with Eclipse - this should be at least version 8.0. Best practice is to point to a JDK rather than a JRE location. Also, by using version 8.0 you no longer need to configure the PermGen space.

5. Next, search for new features using the Mars  Updates (with only "Show the latest version", "Group Items by Category" and "Contact all update sites during install to find required software" 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:

  • Collaboration (Eclipse Git Team Provider - Gitflow support, Eclipse GitHub integration with task focused interface, Mylyn Builds Connector: Hudson/Jenkins, Mylyn Versions Connector: Git
    Subversive SVN Integration for the Mylyn Project, Subversive SVN JDT Ignore Extensions, Subversive SVN Team Provider, Subversive SVN Team Provider Localization, Subversive SVN Team Provider Sources)
  • Web XML Java EE and OSGi Development (Dali Java Persistence Tools - JPA Diagram Editor, OSGi Bundle Facet (Incubation), OSGi Framework Editor (Incubation), OSGi Framework Launchers (Incubation))

6. After restarting, the following update sites can be used to add essential plugins:

AJDT http://download.eclipse.org/tools/ajdt/45/dev/update/ Not AspectJ Development Tools Source or Equinox Weaving SDK)
AJDT AspectJ Configurer http://dist.springsource.org/release/AJDT/configurator/
Spring Tool Suite http://dist.springsource.com/release/TOOLS/update/e4.5/ (except JDT Core patch for Groovy-Eclipse plugin, Grails IDE, Groovy Compiler (all versions), Groovy-Eclipse Feature, and Groovy-Eclipse M2E integration)
SvnKit http://eclipse.svnkit.com/1.8.x
Log4E http://log4e.jayefem.de/update (note that the free version cannot be installed using the update site)
Eclipse FullScreen http://scharf.gr/eclipse/fullscreen/update/ (Not Experimental)
ByteCode Outline http://andrei.gmxhome.de/eclipse/ (only ByteCode Outline)
RegexUtil http://regex-util.sourceforge.net/update/

then restart

Also, from the Mylyn for Eclipse Mars update site select Mylyn Docs EPUB, Mylyn HtmlText, and Mylyn Reviews.

7. After restarting again, install the following extensions from the Eclipse Marketplace: JavaCC Eclipse Plug-in, JBoss Tools (Mars), and Apt M2E Connector, If there are any conflicts at this stage, resolve them by keeping what you have already installed.

8. Go to "Window / Preferences / Maven / Discovery" and "Open Catalog". Select buildhelper, m2e connector for maven-dependency-plugin, m2e-checkstyle, m2e-findbugs, m2e-jdt-compiler, m2e-pmd, m2e-property-helper, plexus-annotations.

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

Download DBViewer from http://sourceforge.jp/projects/dbviewer/releases/ 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.

10. Some other Plugins from the Marketplace that you might want to install: QWickie, Apache Directory Studio, TestNG for Eclipse, Bndtools, Checkstyle, PMD, FindBugs Eclipse Plugin

11. I prefer the standard Java branding even when I have installed from the JavaEE IDE distribution. To get this packaging, I change -product in eclipse.ini to:

-product
org.eclipse.epp.package.java.product

Then, from the standard distribution of Eclipse, I unzip the folder eclipse/plugins/org.eclipse.epp.package.java_4.5.0.20150621-1200 to the equivalent directory in my Eclipse installation. The next Eclipse restart will use the standard branding.

PrintView Printer Friendly Version

EmailEmail Article to Friend

References (12)

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

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

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>