Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7014583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:32:25+00:00 2026-05-27T22:32:25+00:00

I currently have Java ME SDK 3.0.5 installed and am running a MIDLET from

  • 0

I currently have Java ME SDK 3.0.5 installed and am running a MIDLET from Eclipse.

When I run the app under the emulator device I get the following data in the console:

Syntax:

emulator [arguments]

In order to get commands supported by given device run:
emulator.exe -Xdevice:<device name> -Xquery

Generic list of arguments is:

-version           Display version information about the emulator
-help              Display list of valid arguments
-classpath, -cp    The class path for the VM
-D<name>=<value>   Set a system property
-Xdebug            Use a remote debugger
-Xrunjdwp:[transport=<transport>,address=<address>,server=<y/n>,
       suspend=<y/n>]
                   Debugging options
-Xdevice:<device>  Select a device skin for the emulator
-Xdomain:<domain_name>
               Set the MIDlet suite's security domain
-Xmain:<main class name>
                   Run the main method of a Java class, as in Java SE
-Xquery            Print device information

Everything seems to be alright, but I can’t get any form of emulation to appear.

here is the code of my MIDLET, although I don’t think the problem lies here.

 import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.*;

public class Hello extends MIDlet implements CommandListener {

private Command exitCommand;
private Display display;
private Form screen;

public Hello() {
display = Display.getDisplay(this);

exitCommand = new Command ("Exit", Command.EXIT, 2);

screen = new Form ("Hello World");

StringItem strItem = new StringItem ("","Hello World");
screen.append (strItem);

screen.addCommand (exitCommand);
screen.setCommandListener(this);
}

public void startApp() throws MIDletStateChangeException {
    // set the current display to the screen
    display.setCurrent(screen);

}

public void pauseApp() {
    // TODO Auto-generated method stub

}


public void destroyApp(boolean unconditional)  {
    // TODO Auto-generated method stub

}


public void commandAction (Command c, Displayable s) 
{
    if (c == exitCommand) 
    {
        destroyApp (false);
        notifyDestroyed();
    }
}

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:32:26+00:00Added an answer on May 27, 2026 at 10:32 pm

    The output is pretty simple, it’s telling you that the command line syntax to the emulator is incorrect.

    Go to the Java ME device settings and edit the emulator command line / start options to suit.

    Switching IDE’s may work for you as a short-term fix, but it’s always better to get to the root of the issue. Plus it’ll help you understand the emulator framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a Java application running on Google App Engine, but I want
I currently have a Java application running on Google App Engine, but I want
I currently have a small Java program which I would like to run both
The problem: I can't get my java app to run after compiling. My guess
We currently have an Java application that can be deployed on clients or run
I currently have a primary Java Web App Project which houses some Servlets, JSPs
It is the following situation: I currently have multiple Java projects in Eclipse. All
Question about the m2 eclipse plugin. Currently I have Eclipse Java EE IDE for
I am writing an application in java (1.6) using swing. I currently have a
I am working on an IMAP client using java mail. We currently have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.