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
« Announcing Jadira 3.1.0.GA | Main | Announcing Jadira Cloning »
Saturday
Jun292013

Eclipse Kepler

Eclipse Kepler is the simultaneous release of Eclipse 4.3 and a large collection of related Eclipse projects. This release is the significant improvement over Eclipse Juno release, and with some small tweaks even some of the (still unsolved) user interface issues can be fully solved and forgotten.

This post updates my previous quick configuration howtos covering Ganymede, Galileo, Helios, Indigo and Juno by documenting the steps to get stock Eclipse up and running with essential Eclipse plugins. The recipe is for Windows - extrapolate as required.

1. Download Eclipse IDE for Java EE (eclipse-jee-kepler-SR2-win32.zip for 32-bit Windows, eclipse-jee-kepler-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 for 32-bit Windows:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
-clean
-vm
C:/Java/JSE7/jre/bin/server/jvm.dll
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Dhelp.lucene.tokenizer=standard
-server
-Dcom.sun.management.jmxremote
-Declipse.p2.unsignedPolicy=allow
-Xms768m
-Xmx768m
-XX:MaxPermSize=256M
-XX:+UseG1GC
-XX:+TieredCompilation
-XX:+UseCompressedStrings
-XX:+UseCompressedOops

Use the following as an example for 64-bit Windows:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
-clean
-vm
C:/Java/JSE7/jre/bin/server/jvm.dll
--launcher.appendVmargs
-vmargs
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Dhelp.lucene.tokenizer=standard
-server
-Dcom.sun.management.jmxremote
-Declipse.p2.unsignedPolicy=allow
-Xms1536m
-Xmx1536m
-XX:MaxPermSize=256M
-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 7.0 and should be 32-bit or 64-bit as appropriate. Best practice is to point to a JDK rather than a JRE location.

5. Next, search for new features using the Kepler 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 (Commandline interface for Java implementation of Git, Eclipse Git Team Provider, Eclipse Github Integration with task focused interface, Java Implementation of Git, Java Implementation of Git - optional Java 7 libraries, m2e - Maven Integration for Eclipse, m2e - slf4j over logback logging (Optional), Mylyn Builds Connector: Hudson/Jenkins, Mylyn Context Connector: Eclipse IDE, Mylyn Context Connector: Ecore Tools, Mylyn Context Connector: EMF, Mylyn Context Connector: GMF, Mylyn Context Connector: Java Development, Mylyn Context Connector: Team Support, Mylyn Intent, Mylyn Intent - Workspace support, Mylyn Intent Connector: Java, Mylyn Intent Generator: Intent Documentation, Mylyn Task List, Mylyn Task-Focused Interface, Mylyn Tasks Connector: Bugzilla, , Mylyn Tasks Connector: Trac, Mylyn Versions Connector: Git, Mylyn WikiText, Mylyn WikiText: Additional Generators, Task focued interface for Eclipse Git Team Provider)
  • Programming Languages (Code Recommenders Developer Tools)
  • Web XML Java EE and OSGi Development (Dali Java Persistence Tools - JPA Diagram Editor, Dali Java Persistence Tools - JPA Support)

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

AJDT http://download.eclipse.org/tools/ajdt/43/dev/update (Not AspectJ Development Tools Source or Equinox Weaving SDK)
AJDT AspectJ Configurer http://dist.springsource.org/release/AJDT/configurator/
SvnKit http://eclipse.svnkit.com/1.8.x
SubClipse http://subclipse.tigris.org/update_1.10.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 Kepler update site select all updates except for Mylyn Context Connector: C/C++ Development, Mylyn Reviews Connector: Gerrit, Mylyn Versions Connector: CVS, Mylyn Builds SDK, Mylyn Commons SDK, Mylyn Commons SOAP SDK, Mylyn Context SDK, Mylyn Docs EPUB SDK, Mylyn Docs SDK, Mylyn Reviews SDK, Mylyn Tasks SDK, Mylyn Tasks Tests SDK, Mylyn Versions SDK and Mylyn WikiText SDK).

7. After restarting again, install the following extensions from the Eclipse Marketplace: Maven Integration for Eclipse (Juno and newer), JavaCC Eclipse Plug-in,  EGit - Git Team Provider, GitHub Mylyn Connector, Mylyn WikiText, Spring Tool Suite (STS) for Eclipse Kepler, JBoss Tools (Kepler), Apt M2E Connector, Atlassian Connector for Eclipse, Java 8 support for Eclipse Kepler SR2, Java 8 Facet for Web Tools for Eclipse Kepler SR2, Eclipse Java 8 Support (for Kepler SR2) JDT, PDE 1.0.0, and Java 8 support for m2e for Eclipse Kepler SR2. 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 antlr, buildhelper, m2e connector for org.codehaus.mojo:jaxb2-maven-plugin, m2e-jdt-compiler, m2e-egit, m2e-subclipse (NB. Installation of m2e-subclipse does not appear to be working yet).

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. If you cannot open Window / Preferences / General / Appearances without an error dialog appearing add to eclipse.ini just before the '-clean' line:

-cssTheme
org.eclipse.e4.ui.css.theme.e4_default

12. If the layout of your toolbar buttons looks poor and you cannot drag and drop them, install Jeeeyul's 'Eclipse 4 Chrome Theme' from the Eclipse Marketplace. Restart then go to Window / Preferences / General / Appearance' and select 'Jeeeyul's themes - Chrome Theme'.  Restart again and the problem should be solved.

13. 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.standard.product

Then, from the standard distribution of Eclipse, I unzip the folder eclipse/plugins/org.eclipse.epp.package.standard_2.0.2.20140224-0000 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 (2)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
  • Response
    Response: Google
    it's very awesome

Reader Comments (3)

This information is very helpful and I solved my issues version compatibility issues with this information

July 31, 2013 | Unregistered CommenterAshok

Hi, I've found a bug in Jadira User Type about daylight saving (TimestampColumnDateTimeMapper.fromNonNullValue()). I'd like to suggest a patch. Where should I report that issue? I can't create a user account on Jira because 'captcha' (in Sign up form) is broken.

Thanks.

September 2, 2013 | Unregistered CommenterGerson

Updated for Eclipse Kepler SR1 and Beta Java 8 support

January 17, 2014 | 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>