Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

J2ME-File Connection

Question posted by: rpradeepa (Newbie) on May 13th, 2008 08:07 AM
I am using MIDlet code to connect to a notepad using FileConnection. i have stored the notepad Custmertxt.txt in CFCard folder. i am able to read this txt file from emulator. but when i installed it to the mobile i got the error saying

javax.microedition.io.ConnectionNotFound Exception: Only absolute file URL's of type <drive>:<path> are supported.

plz help me. thankx in advance.
JosAH's Avatar
JosAH
Chief Editor
7,769 Posts
May 14th, 2008
02:58 PM
#2

Re: J2ME-File Connection
Nobody answered yet so here's my guess: the text of the exception says it all:
the URL you're passing around has the wrong format. Your CLDC JME configuration
can only handle absolute URLs of the form <drive>:<path> so you have to check
there.

kind regards,

Jos

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,872 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Java Forum Contributors