Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Location of PNG files & emulator 6230i

    Hi all,

    I use JBuilder 2005, NDS 3.0 and Nokia 6230i emulator. I wrote an application which uses PNG files.

    Is it possible to use the PNG files in the application using CreateImage and show them in the emulator when I donot first package the whole application into a JAR, but run from the class file directly ? In which directory should I put the PNG files ?

    I have:

    \PhotoVote\src\com\PhoteVote\<>.java
    \PhotoVote\res\<>.png

    If I copy the PNG files into the source code dir, JBuilder will copy them to the class directory, but the emulator will show 'java/lang/ClassFormatError: Class file size does not match.' Why ?

    If I have the PNG files in the res directory, CreateImage("\file.png") does not find it.

    How should I resolve this ?

    Kind regards,

    Rene Heuven
    E-mail: rene@pcamobile.com

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    2
    Use a slash instead of a backslash:

    Image.createImage("/icons/leds.png");

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    3

    Re: Location of PNG files & emulator 6230i

    Well, I think this error "java/lang/ClassFormatError: Class file size does not match." come from Nokia_S40_DP20_SDK_6230i_1_0.zip
    If I change to another SDK, it run well, is that correct ?

  4. #4
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Re: Location of PNG files & emulator 6230i

    I am not sure. This problem is too long ago for me to check.
    Rene Heuven
    Inmote - Creative Smartphone Solutions
    Web: www.inmote.com
    E-mail: rene@inmote.com

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    3

    Re: Location of PNG files & emulator 6230i

    but how can you skip it ?

Posting Permissions

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