×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    22

    java.io.IOException

    Hi everyone !

    I'm starting with J2ME and I have to access an xml file with my application.
    I've read a lot of stuff about technic to use.
    The only problem right now is accessing the file.

    I get a java.io.IOException and I guessed it's because the file doesn't exist in the folder.
    It actually is and I was able to locate the problem.

    In folder "C:\...\j2mewtk\2.5.2\appdb\DefaultColorPhone\filesystem\root1", I've created a xml file, called XMLAppliInfo.xml

    When I launch my emulator it creates folder C:\...\appdb\temp.DefaultColorPhone65\
    In it, there is the folder filesystem\root1\photos

    In everyone of them, there's no file at all.

    How can my xml file (XMLAppliInfo.xml) be created from the original copy to the folder root1 of my temporary color phone folder (temp.DefaultColorPhone65).

    I've did some manual copy/paste and it works perfectly. How can i make it automatically ? I'm working with netbeans. Is there something I need to add ?

    I hope i've made myself clear and sorry for my english ! Any question, please don't hesitate and ask. I'll be happy to try to clarify what you didn't understand !

    Thanks for your help !

  2. #2
    Regular Contributor
    Join Date
    May 2007
    Location
    India
    Posts
    208

    Re: java.io.IOException

    It happened with me when the emulator got crashed due to some error and after that it used to create temp sessions whenever application runs within the IDE. I quited the IDE and restarted it. The problem got solved. What IDE you are working with and what emulator?

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    22

    Re: java.io.IOException

    Thanks gaurav007 for your help

    The thing is that this problem as been since at least a week. So i've shut down my IDE a lot since
    My IDE is Netbeans and my emulator is the Wireless Toolkit 2.5.2 for CLDC provided by Sun

    So it's a problem with my emulator and my IDE then! What do I have to do to change this ?

  4. #4
    Registered User
    Join Date
    Nov 2009
    Posts
    22

    Re: java.io.IOException

    I've found the problem.

    Why Netbeans generates the temporary folders C:\Documents and Settings\<username>\j2mewtk\2.5.2\appdb\temp.DefaultColorPhone<n>\filesystem\root1 ?

    It is because, when you generate a midlet, when the emulator incounters a problem (computer crash, emulator or IDE freezing...etc), netbeans will not delete all the files it created.
    The one that you need to delete is located in : C:\Documents and Settings\<username>\j2mewtk\2.5.2\appdb\DefaultColorPhone\in.use
    As long as this file (in.use) is here, that means, for netbeans, that you are still running an emulator.

    Delete it, and everything should be good !!
    Last edited by dave33; 2010-04-22 at 15:42. Reason: precising information

  5. #5
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Re: java.io.IOException

    Just run the PDAP demo and checkout that Whether the demo can read the file placed by you in the root1 folder or not. Have a look at PDAP Demo of Wtk2.5

    checkout and revert..
    thanks,
    jitu_goldie..

    KEEP TRYING..

Similar Threads

  1. java.io.IOException: connection already open
    By ayyanar7 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2010-03-26, 10:22
  2. java.io.IOException: -36
    By Sratytaty in forum Mobile Java General
    Replies: 0
    Last Post: 2009-07-31, 09:47
  3. java.io.IOException: Root is not accessible
    By pvumesh in forum Mobile Java General
    Replies: 1
    Last Post: 2007-04-16, 23:36
  4. Error Loading Images java.io.IOException
    By sushant_125 in forum Mobile Java General
    Replies: 1
    Last Post: 2005-01-05, 09:53
  5. java.io.IOException in emulator
    By remonvv in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-08-03, 13:59

Posting Permissions

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