×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    3

    Question RuntimeException: command failed with Symbian error code: -10512

    Hi guys,

    I am a newbie on S60 platform. I developed a Java ME program targeted on S60 3rd Ed. FP1. However, when running/debugging this program (a 168kb jar file), the emulator always displayed:

    Fail to launch the emulator failed.
    Caught Execption:
    java.lang.RuntimeException: command failed with Symbian error code: -10512
    at com.symbian.tools.j2me.sei.emulator.session.commands.SessionCommand.load (SessionCommand.java:70)
    at com.symbian.tools.j2me.sei.emulator.session.commands.InstallCommand.load (InstallCommand.java:116)
    at com.symbian.tools.j2me.sei.emulator.session.commands.SessionCommand.execute (SessionCommand.java:86)
    at com.symbian.tools.j2me.sei.emulator.session.RemoteSession.installMIDletSuite (RemoteSession.java:252)
    at com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.launchMIDlet(EmulatorLauncher.java:536)
    at com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.launch(EmulatorLauncher.java:308)
    at com.symbian.tools.j2me.sei.emulator.Main.main(Main.java:49)

    anybody who can help me resolve this problem.

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: RuntimeException: command failed with Symbian error code: -10512

    Can you run any other MIDlets in the emulator? What is your setup (OS, JDK, development IDE, etc.)?

    Hartti

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    3

    Re: RuntimeException: command failed with Symbian error code: -10512

    Yes, I can compile and run the small midlet examples in netbeans mobility pack without problem.

    Meanwhile, I develop on:
    OS: Windows XP SP2,
    JDK: JDK5 or JDK6,
    IDE: netbean 5.5 with mobility pack

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: RuntimeException: command failed with Symbian error code: -10512

    Ok so it seems it is either your code or something which has been included in the JAR file, which causes this.
    BTW I did not find the error in the Symbian Error code list at
    http://www.newlc.com/Symbian-OS-Error-Codes.html
    So no help from there...

    Have you included all the necessary classes in the jar? Is the manifest file correct? What APIs are you using in your MIDlet?
    If I understood correctly, your MIDlet is not even started, right?

    Hartti

  5. #5
    Registered User
    Join Date
    Apr 2007
    Posts
    3

    Re: RuntimeException: command failed with Symbian error code: -10512

    It seems that the MIDlet breaks in the "Launch session" phase (right before "Attach debugger..") according to the message shown in the SDK progress dialog.

    I have checked the jad file, seems no problem. All related classes are also correctly included in the jar file. In fact, I can run/debug the same Midlet in carbide.j prototype emulators.

    BTW, thanks for your prompt response.

  6. #6
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    112

    Re: RuntimeException: command failed with Symbian error code: -10512

    I am getting the same error code. I cannot get anything emulated on the FP1 emulator. Other emulators work fine. I have Eclipse 3.1 and Carbide.j 1.5.

  7. #7
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Re: RuntimeException: command failed with Symbian error code: -10512

    Same error code here. Any fix? I believe it has something to do with signing and permissions.

  8. #8
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: RuntimeException: command failed with Symbian error code: -10512

    Can you run any other MIDlets on the emulator? I still do not know the exact reason for this...

    Hartti

  9. #9
    Registered User
    Join Date
    Dec 2004
    Posts
    9

    Thumbs down Re: RuntimeException: command failed with Symbian error code: -10512

    I have the same error.
    Yes, I have all the classes in the jar needed.
    Yes, I tried to sign the jar but I don't think it has something to do with that.
    No, I can't run any midlet on the S60 Emulator 3rd fp 1.
    Yes, I can run them on other emulators.

    Has anybody figured out this bug yet?

  10. #10
    Registered User
    Join Date
    Dec 2004
    Posts
    9

    Thumbs up Re: RuntimeException: command failed with Symbian error code: -10512

    It works now, it did has something to do with the signing. In the screen of the emulator says that it doesn't recognize the cert. So I took off the signing and now it works.

Similar Threads

  1. C++ exceptions VS Symbian Leaves :)
    By metalim in forum Symbian
    Replies: 18
    Last Post: 2009-04-15, 11:54
  2. 7650 Symbian Connect
    By alexbas in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2008-11-16, 10:40
  3. Oracle Database Lite 10g Available for Symbian OS Phones
    By chirag_cel in forum News and Announcements
    Replies: 2
    Last Post: 2006-12-11, 07:00
  4. Replies: 0
    Last Post: 2003-06-13, 01:10
  5. Replies: 0
    Last Post: 2003-06-13, 01:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×