Over a million developers have joined DZone.
Refcard #27

Getting Started with MyEclipse

A More Productive Eclipse

Written by

Jens Eckels Marketing Manager, Genuitec

Introduces MyEclipse, the #1 commercial Eclipse-based IDE, and provides valuable knowledge and helpful tools to help begin and deploy projects.

Free PDF
Section 1

About MyEclipse

Downloaded over 10 million times, MyEclipse (http://www.MyEclipseIDE.com) is the #1 commercial Eclipse-based IDE, with industry-leading support for Java and Web developers. You will find this card useful for introducing you to MyEclipse, as well as developing valuable knowledge of the expansive feature set.

We'll explore the basics, like how to obtain MyEclipse and install it, the process of getting started on projects, development utilizing everything from source code editors to advanced code completion features, project deployment, advanced debugging and much more. You'll quickly discover that MyEclipse is the logical, Eclipse plugin-based solution for all of your J2EE integrated development environment (IDE) needs.

Each MyEclipse release is available either through the MyEclipse Web site at http://MyEclipseIDE.com, or via the popular Pulse tool profiling service at http://PoweredByPulse.com. MyEclipse is available for the major platforms, including Windows, Linux and Mac, and offers industry-leading features such as:

  • Ajax & Web 2.0 tooling (including advanced JavaScript capabilities)
  • Hibernate and Spring integration
  • Support for Maven configurations
  • Swing GUI design support
  • Advanced reporting tools
  • Industry-leading Java Persistence tooling and much more!
Section 2

Getting MyEclipse

You can download MyEclipse a number of different ways, including:

Getting started with MyEclipse is really straight forward, if you are coming from another non-Eclipse-based-IDE, it's good to know the following two things:


You can quickly flip between the different perspectives in MyEclipse by using the Perspective Buttons on the top right of your screen: Perspective Button

Hot Tip

Working with huge projects? Increasing memory arguments can improve performance. We recommend using: -vmargs-Xms128M-Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M. You can set these arguments in the shortcut you use to launch MyEclipse, or edit the eclipse.ini file under the MyEclipse install directory with them.

There are many different perspectives in MyEclipse, each one geared towards helping you work more efficiently with a certain technology or tool. They are:

CVS PerspectiveDebug PerspectiveJava Browsing PerspectiveJava Type Hierarchy PerspectiveMyEclipse AJAX PerspectiveMyEclipse Database Explorer PerspectiveMyEclipse Hibernate PerspectiveMyEclipse Image Editor PerspectiveMyEclipse Java Enterprise PerspectiveMyEclipse Java Persistence PerspectiveMyEclipse JavaScript PerspectiveMyEclipse Report Design PerspectiveMyEclipse Swing/ Matisse PerspectiveMyEclipse UML PerspectivePlug-in Development PerspectiveResource PerspectiveTeam Synchronizing Perspective

As a quick reminder, you can lay your perspectives out anyway you'd like, either closing views you don't use or adding ones you use all the time. Be sure to save your changes using: Window > Save Perspective.

Section 3

Developing with MyEclipse

Creating Projects

Working in MyEclipse, for the most part, starts first with a Project. You can create many different kinds of projects from the File > New > Project menu.

EJB ProjectEnterprise Application ProjectJava Maven ProjectJava ProjectReport Web ProjectWeb ProjectWeb Service Project

Hot Tip

All projects marked with[Optional Maven Support] means that when you create that new project, you'll have an opportunity to enable Maven support on that project and use Maven to handle dependencies, building and even deployment of your project if you like. It's up to you.

Editing Source Files

MyEclipse supports editing many different kinds of source files (e.g. Java, JavaScript, HTML, XHTML, JSP, Struts/JSF/Facelet pages). Whenever you open a certain kind of source file, MyEclipse will always open that source file automatically in the best-suited editor for the job. You can force MyEclipse to open source files in different editors by right-clicking on the files and going to the Open With context menu.

Hot Tip

If you want to permanently change a file-editor relationship, you can do that from the Window > Preferences > General > Editors > File Associations preference page.

While editing, you can always invoke :

Learning these three shortcuts can save you a lot of time.

You can combine the format code and organize import operation along with more code cleaning features all as part of saving a file (CTRL-S) automatically, so you never have to run it yourself. You can do this from the preference page:

Window > Preferences > Java > Editor > Save Actions

Save Actions

Web Application Development

MyEclipse supports working on Web Projects, EJB Projects and Enterprise Application Projects using the following Java EE specification levels:

  • J2EE 1.3
  • J2EE 1.4
  • Java EE 5

Hot Tip

MyEclipse has visual page designers for all the major web technologies like Struts, JSF, Facelets, ICEfaces, JSP and HTML.


MyEclipse provides tooling for all the most popular persistence technologies, including full reverse-engineering and POJO/DAO generation support for:

  • Hibernate
  • JPA (Toplink, Hibernate & OpenJPA)
  • EJB3


MyEclipse also supports a gamut of web services frameworks, including service and client generation in either bottom-up (from a Class file) or top-down (from a WSDL) scenarios for:

  • JAX-WS Web Services and Clients
  • WebSphere JAX-WS and JAX-RPC Web Services and Client (Blue Only)
  • X-Fire based Web Services and Clients


Database Explorer makes working with your database a snap. An example of how you can visualize your tables and relationships quickly:

Database Explorer


Most all of the Web Service generation wizards can be launched directly from the tool bar, as well as the Web Service Explorer for testing your services. Just use these buttons to add services or explore: Wizards

MyEclipse will automatically handle building the different kinds of projects for you, but also provides support for Ant and Maven, if you prefer to use them, to perform tasks like testing, building or packaging your project.

Deployment & Running

MyEclipse provides integrated support for deploying your projects to your favorite application server (over 30 supported) in two different ways:

In addition to managing your project deployments from inside the IDE, you can also manage the Start, Stop and Restart cycle for all the most popular application servers, including Tomcat, Glassfish, JBoss, WebSphere, WebLogic, Resin, Jetty and more.


Hot Tip

For really tight WebSphere deployment integration, check out MyEclipse Blue Edition, it's MyEclipse for WebSphere developers.

In addition to handling deployments and your server run-state independently, you can also run or debug your project even faster by using Run As or Debug As MyEclipse Server Application from the project's right-click context menu.

MyEclipse also includes an embedded version of Tomcat as well as the Derby DB, allowing you to develop DB-enabled Web Projects right out of the box with no additional software setup. Or, just test your own projects instantly.

Hot Tip

As long as your server was started in Debug mode, you can debug any Class or JSP resource easily while excercising your application by setting a breakpoint in the source editor.

Using Ant or Maven Builders

A handy tip that not many people know is that besides MyEclipse handling builds and deployment for you, if you have custom needs or pre-existing Ant/Maven scripts that you want to use, you can easily integrate these into your build process by adding a custom Ant or Maven builder to your project. This will run the script, and the selected targets, for the following build stages:

  • After a Clean
  • During a Manual build
  • During a Auto build
  • During a Clean

The targets to execute for each stage are fully configurable when setting up the custom builder. You can do that by right-clicking on your project and opening Properties, then going to Builders and clicking Add. From there you can configure the custom builder of your choice:

Deployment Configuration

Keyboard Shortcuts

You can have total control over your keyboard shortcuts in MyEclipse. All shortcuts can be adjusted from the preference page: Window > Preferences > General > Keys.

Common Navigation Shortcuts

Common Coding Shortcuts

Common Debugging Shortcuts

Common View Shortcuts

Section 4

Write Less Code

There are many different ways that MyEclipse helps you write less code. Besides providing some of the best industry-wide code generation wizards, we also provide support for simpler, every-day, enhancement like code templates, code content assist, and content assist templates.

Generate Getters, Setters, Delegates, Constructors


Hot Tip

Using the Surround With menu is also a big time saver, especially for Try/Catch blocks.

Code Templates

Window > Preferences > Java > Code Style > Code Templates

Code Templates

Example #1: Can be used to change how new Class files are generated, to include a company-wide license at the top of the class file in a comment.

Example #2: Can be used to automatically add author, date and project information into a new method with a TODO marker until it's implemented.

Content Assist

Example #1: String name = new |<-- Invoke here for "String", since it will match the type of the variable.

Example #2: MyClass |<-- Invoke here for "myClass" and a few other common variations based on the type name.

Content Assist Templates

Window > Preferences > Java > Editor > Templates

Content Assist Templates

Example #1: Create a template "myfor" that creates a complex for-loop, including comments and templated argument variables. Type "my" or "myfor" and hit CTRL-Space to have your template inserted.

Example #2: There is a huge set of pre-defined templates you can already use. For example, try "sysout" and hit CTRL-space.

Hot Tip

Code Assist Templates also have a specified "context" that they apply to (e.g. in Javadoc, or in Java source code).

Section 5

Work as a Team

MyEclipse supports integrated team source control tools like CVS out of the box. You can add support for your favorite source control system (Subversion, Perforce, Clear Case, etc.) all by adding the appropriate plugin to your MyEclipse install.

Version control allows you to easily keep your work safely versioned and combined with other team-member's work without needing to send emails back and forth to your team members with your changes in them.

Integrated Team (Version Control) operations can all be accessed from the Team menu off of the right-click context menu on your project. This includes:

  • Update Commit
  • Branch / Tag
  • Merge
  • Show History
  • and every other operation you could need!

Work as a Team

Section 6

Extending MyEclipse - Plug-ins

Since MyEclipse is built on top of the Eclipse platform, you can easily extend it with any of your favorite Eclipse plugins in the same way you might extend Eclipse.

Hot Tip

A good resource for plugins is www.eclipseplugincentral. com.

In addition to finding and installing your own plugins manually, you can use Pulse (www.poweredbypulse.com) to create a MyEclipse-based software profile and then Drag and Drop software from the included software catalog into the profile. Pulse will handle installing and running that for you automatically. You can even share these profiles with friends, co-workers and teams.

Section 7

Website References

By reviewing and utilizing the helpful hints in this guide, you've already placed yourself a step ahead of the competition. MyEclipse is a pervasive tool in the Eclipse space, and there are multiple Web sites you can visit for more information and helpful hints.

We recommend the following specific sites to get the most out of your MyEclipse experience.



  • Featured
  • Latest
  • Popular
Design Patterns
Learn design patterns quickly with Jason McDonald's outstanding tutorial on the original 23 Gang of Four design patterns, including class diagrams, explanations, usage info, and real world examples.
212.5k 627.3k
Core Java
Gives you an overview of key aspects of the Java language and references on the core library, commonly used tools, and new Java 8 features.
133.1k 371.5k
Getting Started with Git
This updated Refcard explains why so many developers are migrating to this exciting platform. Learn about creating a new Git repository, cloning existing projects, the remote workflow, and more to pave the way for limitless content version control.
131.6k 300.1k
Getting Started with Ajax
Introduces Ajax, a group interrelated techniques used in client-side web development for creating asynchronous web applications.
102.7k 216.2k
Foundations of RESTful Architecture
The Representational State Transfer (REST) architectural style is a worldview that elevates information into a first-class element of architectures. REST allows us to achieve the architectural properties of performance, scalability, generality, simplicity, modifiability, and extensibility. This newly updated Refcard explains main HTTP verbs, describes response codes, and lists libraries and frameworks. It also gives additional resources to further explore each topic.
106k 182.8k
Spring Configuration
Catalogs the XML elements available as of Spring 2.5 and highlights those most commonly used: a handy resource for Spring context configuration.
105k 269.7k
Scrum is a framework that allows people to productively and creatively deliver products of the highest possible value. With over 70% of Agile teams using Scrum or Scrum hybrid, learn more about its benefits in managing complex product development. This newly updated Refcard explores the details of Scrum, including theory, values, roles, and events. It also includes a sample of a popular approach to deliver Integrated Increments in a scaled environment.
97.1k 260.3k
Core CSS: Part I
Covers Core principles of CSS that will expand and strengthen your professional ability to work with CSS. Part one of three.
91.7k 201.8k
jQuery Selectors
Introduces jQuery Selectors, which allow you to select and manipulate HTML elements as a group or as a single element in jQuery.
94.4k 361k
Core Java Concurrency
Helps Java developers working with multi-threaded programs understand the core concurrency concepts and how to apply them.
92.3k 201.5k
Getting Started with Eclipse
Eclipse IDE is a cross-platform, multi-purpose, open-source Integrated Development Environment. It is widely used to develop projects in Java, JavaScript, PHP, C++, Scala, and many others. This newly updated Refcard breaks down installing, setting up, and getting started with Eclipse. It also covers productivity tips, creating new projects and files, accessing Source Control Managers, and debugging configurations.
81.5k 228.5k
Core CSS: Part II
Covers Core principles of CSS that will expand and strengthen your professional ability to work with CSS. Part two of three.
74.8k 143.7k
{{ card.title }}
{{card.downloads | formatCount }} {{card.views | formatCount }}

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}