Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor ayyanar7's Avatar
    Join Date
    Feb 2010
    Posts
    65
    I am tring to open create a file in this path file://C:/Documents and Settings/My Documents/NetBeansProjects

    fileConnection = (FileConnection)Connector.open(url_FILE,Connector.READ_WRITE);

    fileConnection.create();

    but in the above code (fileConnection.create(); ) in this line it is showing
    the exception:

    java.io.IOException: Root is not accessible

  2. #2
    Super Contributor grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    First, note that "file:" is usually followed by three "/".

    Second: there are many restrictions on reading and writing files in the device's file system. It is better to use the provided system properties for locating folders, rather than coding a path. For example, see the Forum Nokia wiki.

    Graham.

Similar Threads

  1. [moved] CA root certificate recognition within Nokia and Symbian applications
    By atilla.biler in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2010-02-22, 07:41
  2. Missing Verisign ca on the N6131 Root Certification List
    By sure0812 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2008-09-08, 19:50
  3. Getting WServ 1 while trying draw on root session
    By gigglie in forum Symbian C++
    Replies: 0
    Last Post: 2008-04-15, 08:38
  4. java.io.IOException: Root is not accessible
    By pvumesh in forum Mobile Java General
    Replies: 1
    Last Post: 2007-04-16, 23:36
  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
  •  
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