The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » ME Interest

Thread: FileConnection Api WTK 2.5.2_01 ISSUE

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 0 Threads: [ Previous | Next ]
uncooldrewl

Posts: 6
FileConnection Api WTK 2.5.2_01 ISSUE
Posted: Oct 31, 2009 7:17 AM
  Click to reply to this thread Reply

Hi guys,


I'm having some troubles regarding the file connection api with the WTK 2.5.2_01. I want to store a String so I'm using the FileConnection :


FileConnection fconn=(FileConnection)Connector.open("file:///E:/log.txt", Connector.READ_WRITE);


Now if that's the code I get:
java.io.IOException: Root is not accessible


That code always worked with the WTK 2.2,however I tried:

FileConnection fconn=(FileConnection)Connector.open("file:///root1:/log.txt", Connector.READ_WRITE);


Then I do not get any exception but actually in C:\WTK2.5.2_01\j2mewtk_template\appdb\DefaultColorPhone\filesystem\root1 there is no
log.txt
created,that's really strange. In the past I haven't got that problem with the WTK 2.2 so I suppose there is something with the new wireless toolkit,hope you can help me.




 XML java.net RSS