¿Sigue siendo posible el desarrollo de J2ME con versiones recientes de Eclipse?

I tried installing MTJ 1.1.2 from http://www.eclipse.org/mtj/, but after the restart, no new options appeared that would indicate that the plugin is even there. As the latest release is for Helios, I am afraid that the plugin no longer works with Juno and later.

Is it still possible to develop J2ME applications with Eclipse? If so, how? If not, what are the alternatives?

preguntado el 28 de agosto de 12 a las 14:08

5 Respuestas

Eclipse Juno The Oracle Java ME SDK requires the MTJ toolkit, but it is not bundled with Juno and it must be installed manually. Therefore, install MTJ toolkit first.

  • Vaya a Ayuda > Instalar nuevo software.
  • In the "Work with" field, enter this URL: http://download.eclipse.org/releases/indigo
  • Click Add. When the plugins are discovered, open the Mobile and Device Development Tools hierarchy and check Mobile Tools for Java, Mobile Tools for Java SDK, and Mobile Tools for Java Examples. Click Next. On the installation screen select all plugins and click Finish.
  • A Juno plugin named org.eclipse.jetty.server_(version).jar conflicts with the MTJ libraries when the plugin version is higher than 6. If it is you must prevent it from loading by changing its name so the Jar file is not parsed. For example, change it to: org.eclipse.jetty.server.old

ver: http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html

respondido 27 mar '14, 07:03

You don't need a plugin at all, you can point eclipse to the midp and cldc jar files, and write your own ant/antenna script to package a midlet.

Respondido 28 ago 12, 22:08

Good idea, but my IDE kung-fu is not strong enough. Is there a tutorial or something similar that would help me do that? - JuanOjo

In your project's Java Build Path, remove the JRE System Library, and add the MIDP and CLDC jars that come with your wireless toolkit (and also the jars for any extra JSRs that you plan to use). This will stop you inadvertently using any classes you shouldn't! The build script for a MIDlet will be complex but a bit of trial and error based on the instructions here will get you sorted :: javaranch.com/journal/2004/03/Antenna.html - funkybro

Regardless, I recommend building production MIDlets from a build script even when using a plug-in. It's far better to be able to build from the command line, and tweak each parameter to your liking, than to rely on IDE black magic. IDE commands are also not so easy to execute from your continuous integration system. (Same goes for android apps, iOS apps, web apps, anything). - funkybro

Thank you for the advice funkybro. - JuanOjo

The interest in J2ME has waned post advent of iOS and Android. The MTJ project has been inactive for a while and will likely be archived soon. You can see project activity dropping off to nothing...


If you must write for J2ME, you will need to stay on an older version of Eclipse or grab MTJ sources and port it to the newer version of Eclipse yourself.

Respondido 28 ago 12, 18:08

I have faced the same problem as you. What I did was to keep using Eclipse Indigo.

Respondido 28 ago 12, 17:08

I've found that using the NetBeans IDE is simpler for Java ME development, especially with the new Java ME 8 SDK. All the Oracle examples are NetBeans too.

Respondido el 28 de enero de 14 a las 07:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.