Eclipse Mars
Saturday, June 27, 2015 at 9:40PM
Chris

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:

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.

Article originally appeared on Jadira (http://blog.jadira.co.uk/).
See website for complete article licensing information.