FileConnection Error in J2ME Polish

Hi ,

I have made an application in J2ME and now changing its screen shots using J2ME Polish.My application uses FileConnection API and it is running fine.

But now when i am adding J2ME Polish into it and now running the Ant file ie build.xml , it is showing error"package javax.microedition.io.file does not exist" . I have integrated this project in Eclipse and also added the JSR 75 in the application.

I wanted to know that why is such error coming.

do i need to add some package into the build.xml for file connection .I f yes then how.Please tell me.

Regards,

Divya

[621 byte] By [Divyasa] at [2007-10-3 3:01:13]
# 1
http://www.j2mepolish.org/discussion.html
suparenoa at 2007-7-14 20:50:54 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
what is your target device?is it midp1.0u have to use specific devices where actual file acess is grantedeven midp2.0 won't work :)
sailesh_dita at 2007-7-14 20:50:54 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
My target devices are Nokia 6681 and Nokia 3250.Both of them are MIDP 2.0 and they support File Connection API ie JSR 75.But in build.xml i have given device requirement as <requirement name="Identifier" value="Nokia/Series60Midp2" />Wheres the
Divyasa at 2007-7-14 20:50:54 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

Your problem seems to be the jsr is not in build path

have you done these steps

from project properties ->java bulid path ->add external library

and add ur jsr's jar

hope it works

also see that in build.xml if there is a test property if it is it should be false :)

sailesh_dita at 2007-7-14 20:50:54 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
its workin now.I added binaryLibraries="tinylinegzip.zip" line in the build.xml and included the jar in the import folder in J2ME Polish...But thanks all for giving suggestions...:)
Divyasa at 2007-7-14 20:50:54 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
hello,i am working in j2me tool kit fileconnection & fileSystemegistery Working well but those method notworking in mobile why am setting any propertiesmoile model nokia 6670
indsofta at 2007-7-14 20:50:54 > top of Java-index,Java Mobility Forums,Java ME Technologies...