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
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

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

  




 

 

Eclipse Java ME (J2ME) Developer Guide
Previous Page Home Next Page

Converting an existing project to an MIDlet project

If you have an existing Java project that you want to convert into an MIDlet project, you can do this by selecting Convert to MIDlet Project from the project pop-up menu.

When you do this, the MTJ plug-in will automatically prompt you for the appropriate device definition, and will then make the required changes to your project.

If a J2SE project is converted to an MIDlet project, the J2SE libraries need to be removed from the build path. If MTJ can identify these libraries, it will remove them automatically. If MTJ does not remove the J2SE libraries, you will need to do this yourself.

MTJ also handles adding the appropriate Java ME libraries to your project automatically. The specific libraries added are based on the selected device definition. If you were using Eclipse to do Java ME programming prior to converting your project to use MTJ, your project may still have the Java ME libraries in the build path. If so, you need to remove them. Failure to do this may cause problems, since MTJ may misinterpret these libraries as additional classes that need to be bundled into your JAR file.


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