Sara Houssein
Sara Houssein

Reputation: 47

java.io.File in j2mepolish not working

I need to create an image in my application's sub-folder so that I am using java.io.File and java.io.FileOutputStream; but when I build the project , this error occurs :

error: cannot find symbol
    [javac]java.io.File

error: cannot find symbol
    [javac] import java.io.FileOutputStream;

How can I fix this or there is an another way to create the file?

Upvotes: 0

Views: 140

Answers (1)

nikhilr57
nikhilr57

Reputation: 115

Import microedition, eg, import javax.microedition.io.file.FileConnection;

Upvotes: 1

Related Questions