Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java ME SDK 3.4 problem running IMP-NG Midlets

Leonardo Rocha LimaOct 15 2013 — edited Oct 16 2013

Hello!

I downloaded and installed the Java ME SDK 3.4 and I'm having trouble running a IMP-NG JAD. I don't know if it's a environment problem or a SDK bug...

If I make a JAD IMP-NG, I get a IllegalArgumentException when launching, even if we run using the Device Selector window, right-click on IMPNGDevice1. If I make it a IMP-1.0, it runs on simulator, but doesn't show in right-click on IMPNGDevice1... It seems to be checking the version (IMP-NG is 2.0, and simulator is 1.0?) but I don't see what's wrong.

Thanks for any help!

Stacktrace:

Installing suite from: file:///C:/devel/ecl_ng2/workspace/Hello1/.mtj.tmp/emulation/Hello1.jad

TRACE: <at java.lang.IllegalArgumentException>,

java.lang.IllegalArgumentException

- com.sun.midp.installer.Version.initFromComponents(), bci=149

- com.sun.midp.installer.Version.<init>(), bci=22

- com.sun.midp.installer.Version.createFromString(), bci=33

- com.sun.midp.installer.Version.compare(), bci=6

- com.sun.midp.installer.Installer.matchVersion(), bci=81

- com.sun.midp.installer.Installer.isSupportedProfile(), bci=23

- com.sun.midp.installer.Installer.matchProfile(), bci=212

- com.sun.midp.installer.Installer.installStep10(), bci=19

- com.sun.midp.installer.Installer.performInstall(), bci=188

- com.sun.midp.installer.Installer.resumeInstallation(), bci=7

- com.sun.midp.installer.MidpInstaller$StartAction.run(), bci=10

- com.sun.j2me.security.AccessController.doPrivileged(), bci=12

- com.sun.midp.installer.MidpInstaller$InstallThread.run(), bci=9

- java.lang.Thread.run(), bci=5

JAD

MIDlet-Version: 1.0.0

MIDlet-Vendor: MIDlet Suite Vendor

MIDlet-Jar-URL: Hello1.jar

MicroEdition-Configuration: CLDC-1.1

MIDlet-1: Hello1,,mobi.v2com.zion.test.Hello1

MicroEdition-Profile: IMP-NG-2.0

MIDlet-Name: Hello MIDlet Suite

Midlet

package mobi.v2com.zion.test;

import javax.microedition.midlet.MIDlet;

import javax.microedition.midlet.MIDletStateChangeException;

import com.oracle.util.logging.Level;

import com.oracle.util.logging.Logger;

public class Hello1 extends MIDlet {

  private Logger logger = Logger.getLogger(getClass().getName());

  public Hello1() {

  // TODO Auto-generated constructor stub

  }

  protected void destroyApp(boolean arg0) throws MIDletStateChangeException {

  // TODO Auto-generated method stub

  }

  protected void pauseApp() {

  // TODO Auto-generated method stub

  }

  protected void startApp() throws MIDletStateChangeException {

  logger.log(Level.INFO, "Hello1");

  System.out.println("Hello!");

  }

}

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 13 2013
Added on Oct 15 2013
3 comments
2,601 views