×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Delhi
    Posts
    223

    Exception in thread "main" java.lang.IllegalStateException: Error parsing Jad file.

    My application throws a following exception while running on a samsung emulator or device.
    but the same is running fine on nokia's emulators and phones.

    Errors are:

    Exception in thread "main" java.lang.IllegalStateException: Error parsing Jad file.
    at com.sun.kvem.environment.LaunchingOptions.fixClassPath(LaunchingOptions.java:401)
    at com.sun.kvem.environment.LaunchingOptions.getClassPath(LaunchingOptions.java:141)
    at com.sun.kvem.environment.LaunchingOptions.getEmulatorArgumentsList(LaunchingOptions.java:330)
    at com.sun.kvem.environment.LaunchingOptions.getEmulatorArguments(LaunchingOptions.java:316)
    at com.sun.kvem.environment.EmulatorWrapper.run(EmulatorWrapper.java:690)
    at com.sun.kvem.environment.EmulatorWrapper.main(EmulatorWrapper.java:157)
    Caused by: java.io.IOException: Cannot read JAD file C:\Documents and Settings\admin\My Documents\NetBeansProjects\irj2me\dist\Generic\AnyMsaPhone\test.jad
    at com.sun.kvem.environment.Executor.makeClassPath(Executor.java:389)
    at com.sun.kvem.environment.LaunchingOptions.fixClassPath(LaunchingOptions.java:398)
    ... 5 more



    And the configuration i am using is:

    platform.configuration=CLDC-1.1
    platform.device=Generic/AnyMsaPhone
    platform.fat.jar=true
    platform.profile=MIDP-2.0
    platform.trigger=CLDC


    configs.Generic/AnyMsaPhone.platform.active=Samsung_SDK_1_2_0_beta_for_the_Java_TM__ME_Platform
    configs.Generic/AnyMsaPhone.platform.active.description=Samsung SDK 1.2.0 beta for the Java(TM) ME Platform




    is the problem occurs because of polish??
    Thanx
    Pooja

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Exception in thread "main" java.lang.IllegalStateException: Error parsing Jad fil

    Can you show is the contents of C:\Documents and Settings\admin\My Documents\NetBeansProjects\irj2me\dist\Generic\AnyMsaPhone\test.jad
    , please?

    Graham.

  3. #3
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Delhi
    Posts
    223

    Re: Exception in thread "main" java.lang.IllegalStateException: Error parsing Jad fil

    yes my jad file contains following content:



    MIDlet-1: IRovr,/logo.png,com.ipack.irj2me.Main
    MIDlet-Description: Welcome Folks
    MIDlet-Icon: /logo.png
    MIDlet-Info-URL: http://www.google.com
    MIDlet-Jar-Size: 191693
    MIDlet-Jar-URL: irj2me.jar
    MIDlet-Name: IRovr
    MIDlet-Permissions: javax.microedition.io.Connector.http
    MIDlet-Permissions-Opt: javax.microedition.location.Location
    MIDlet-Vendor: ABC Inc
    MIDlet-Version: 1.1
    MIDlet-Certificate-1-1: MIICPTC*******
    MIDlet-Jar-RSA-SHA1: BW***********
    Thanx
    Pooja

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Exception in thread "main" java.lang.IllegalStateException: Error parsing Jad fil

    Try using a three-part version number (like 1.0.0, rather than 1.0).

    Make sure the last line is terminated with a line-feed (or carriage-return & line-feed pair).

    If you remove the permissions and signing options, does it install?

    Try removing optional parameters, like info-url and description.

    Graham.

Similar Threads

  1. Emulator crash immediatly after launched, SDK of S60 3nd
    By loopfinder in forum Symbian Tools & SDKs
    Replies: 27
    Last Post: 2011-01-30, 14:06
  2. About emulator problems
    By camus_ym in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2010-02-26, 12:43
  3. Regarding BMCONV
    By sanah007 in forum Symbian
    Replies: 2
    Last Post: 2009-05-26, 12:47
  4. Replies: 7
    Last Post: 2009-03-21, 18:54

Posting Permissions

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