Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Mobile Java Development Tools
Previous Page Home Next Page

Creating an External Library

In this section, you will be learning how to create an external library to be integrated to the MTJ MIDlet Wizard.


The external library creation process is composed of the following tasks:

  1. Create a folder structure for the library jar and resources;
  2. Extend the org.eclipse.mtj.core.externallibrary extension point;
  3. Fill in the library's branding info;
  4. Define the library's classpath entries;
  5. Specify an license

Create a folder structure for the library jar and resources

The external library folder structure could follow the format bellow inside the plugin's project root:

  • lib : used to hold the jar file of the library
  • javadocs : used to hold the javadoc resources.
  • src : used to hold the library's source files.

See example bellow:

External Library folder structure.

Fill in the library's branding info

Fill in the branding fields. For this example we are using the "Lightweight User Interface Toolkit" library version 1.1.

Branding Info

Define the library's classpath entries

You MUST specify the path to the library's jar within the plug-in you are creating.

The javadoc path is optional and can be either a folder inside the plug-in or an URL. The library's source code path its also optional but if defined, it must be a folder inside the plug-in.

Classpath entries

Access rules may also be created for the classpath entry.

Specify an license

Define the license under which this library was released. You MUST provide the license name and an URL where the user can find the text of that license.

Licensing Info

Using the External Library

After the installation of the plug-in in the workbench, the new external library will be available to the user in the "New MIDlet Project" Wizard.

New MIDlet Project Wizard.

In case the user select it in the New MIDlet Project Wizard, the library jar will be automatically included in the project's classpath.

Project classpath.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire