Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    hi everyone

    i have a .jar file i want to import this to my carbide IDE 2.0 i dont know how to import .
    it is s60 based picture based application.

    then i have to run this application on emulator

    Can anyone suggest something regarding that.

  2. #2
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    What do you mean by "import"?

    If it is an application, and you want to run it in the emulator, you do not need to use the IDE. For example, to run an application in the Sun emulator, go to Start, Programs, Sun Java (TM) Wireless Toolkit 2.5.2 for CLDC, Run MIDP Application..., and select the application's JAD file from the file dialogue.

    Cheers,
    Graham.

  3. #3
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    I have .jar and .jad files n i want to use IDE...
    and run into emulator.



    Quote Originally Posted by grahamhughes View Post
    What do you mean by "import"?

    If it is an application, and you want to run it in the emulator, you do not need to use the IDE. For example, to run an application in the Sun emulator, go to Start, Programs, Sun Java (TM) Wireless Toolkit 2.5.2 for CLDC, Run MIDP Application..., and select the application's JAD file from the file dialogue.

    Cheers,
    Graham.

  4. #4
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Hi,
    which IDE you are working with?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    I m working with Carbide C++ 2.0


    Quote Originally Posted by raj_J2ME View Post
    Hi,
    which IDE you are working with?

  6. #6
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Quote Originally Posted by amitkamboj View Post
    I m working with Carbide C++ 2.0
    Do you know that where is the jad and jar files are created by this IDE?.
    Just make a new project and then out the both files out there in the same directory.and start the IDE..I guess you should be able to run the jad and jar.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  7. #7
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    no i dont know where is jad and jar files created .

    I have one jar and jad file which i have downloaded ..
    can you tell me have to run these files from emulator .
    I m using S60 5edition.


    Quote Originally Posted by raj_J2ME View Post
    Do you know that where is the jad and jar files are created by this IDE?.
    Just make a new project and then out the both files out there in the same directory.and start the IDE..I guess you should be able to run the jad and jar.

  8. #8
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Quote Originally Posted by amitkamboj View Post
    no i dont know where is jad and jar files created .

    I have one jar and jad file which i have downloaded ..
    can you tell me have to run these files from emulator .
    I m using S60 5edition.
    Hey,
    That was exactly told in the very first post by Graham.for WTK
    you can start the emulator that you have.Then just go to the file and then -->open UR then browse the jar file and click the OK.It will start the installation of the file and then your application will be available...in my own or application.

    IS this make sense to you?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  9. #9
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    thats fine but when try to open .jar file it give error

    Failed to load Main-Class manifest attribute from (filename).jar

    Quote Originally Posted by raj_J2ME View Post
    Hey,
    That was exactly told in the very first post by Graham.for WTK
    you can start the emulator that you have.Then just go to the file and then -->open UR then browse the jar file and click the OK.It will start the installation of the file and then your application will be available...in my own or application.

    IS this make sense to you?

  10. #10
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    No, don't open the JAR using explorer. You need open the JAD, using the emulator. Take a look at the documentation for the emulator. I described earlier how to run an application using the Wireless Toolkit emulator. If you want to use Nokia's emulator instead, the instructions are in the SDK documentation (I don't use that SDK, so I can't tell you).

    You don't need to use an IDE.

    Cheers,
    Graham.

  11. #11
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    ya when i load JAD file it gives following code

    MIDlet-1: PhotoAlbum,, example.photoalbum.PhotoAlbum
    MIDlet-Data-Size: 256
    MIDlet-Description: Photoalbum of images
    MIDlet-Jar-Size: 289886
    MIDlet-Jar-URL: PhotoAlbum.jar
    MIDlet-Name: PhotoAlbum
    MIDlet-Permissions: javax.microedition.io.Connector.http
    MIDlet-Vendor: Sun Microsystems, Inc.
    MIDlet-Version: 2.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.1
    PhotoImage-1: /example/photoalbum/images/leaf.jpg
    PhotoImage-2: /example/photoalbum/images/leafbw.jpg
    PhotoImage-3: /example/photoalbum/images/leafpg.jpg
    PhotoImage-4: /example/photoalbum/images/leaf.png
    PhotoImage-5: /example/photoalbum/images/LightHouse-
    PhotoImage-6: /example/photoalbum/images/jc_frame_
    PhotoImage-7: http://libpng.sourceforge.net/pngbar.png
    PhotoTitle-1: JPEG Color
    PhotoTitle-2: JPEG BW
    PhotoTitle-3: JPEG Progressive
    PhotoTitle-4: PNG
    PhotoTitle-5: Flashing LightHouse
    PhotoTitle-6: Java Fly By
    PhotoTitle-7: PNG image


    but i dont know how to proceed further

    u have said that we need not to use IDE
    how i can run my application other then IDE.


    Quote Originally Posted by grahamhughes View Post
    No, don't open the JAR using explorer. You need open the JAD, using the emulator. Take a look at the documentation for the emulator. I described earlier how to run an application using the Wireless Toolkit emulator. If you want to use Nokia's emulator instead, the instructions are in the SDK documentation (I don't use that SDK, so I can't tell you).

    You don't need to use an IDE.

    Cheers,
    Graham.

  12. #12
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    I'm sorry, I don't know how to explain this more clearly.

    You need to run the emulator. Install the Wireless Toolkit, and follow the instructions I gave in my first post, to run the emulator.

  13. #13
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    but in first reply u mentioned sun emulator so do i need to have sun emulator

    Quote Originally Posted by grahamhughes View Post
    I'm sorry, I don't know how to explain this more clearly.

    You need to run the emulator. Install the Wireless Toolkit, and follow the instructions I gave in my first post, to run the emulator.

  14. #14
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    Install the Wireless Toolkit.

  15. #15
    Regular Contributor amitkamboj's Avatar
    Join Date
    Dec 2008
    Posts
    85
    I had installed Wirless Tool kit it is working there..
    but i also want to run on emulator
    do anyone have any suggestions



    Quote Originally Posted by grahamhughes View Post
    Install the Wireless Toolkit.

Page 1 of 2 12 LastLast

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian C++
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. JXME + OSGi for j2me
    By gittu in forum Mobile Java General
    Replies: 13
    Last Post: 2009-03-04, 09:34
  3. bluetooth setting using bluecove
    By amoon108 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2008-10-15, 10:11
  4. problem on running my application
    By rsf in forum Python
    Replies: 7
    Last Post: 2007-10-21, 15:56
  5. SocketConnection Work on 6600&Emulators BUT NOT IN 6680
    By eerant in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2006-03-11, 00:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved