Skip to main content

fss.delete doesnt work?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
68060
Offline
Joined: 2011-08-29

When I try to do fss.delete(file) - I get this

java.io.IOException:
at com.sun.midp.io.j2me.file.Protocol.delete(Protocol.java:916)
at com.sun.lwuit.io.impl.MIDPImpl.deleteFile(MIDPImpl.java:661)
at com.sun.lwuit.io.FileSystemStorage.delete(FileSystemStorage.java:145)

any idea why?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
68060
Offline
Joined: 2011-08-29

OK it does work! make sure you close the file and any inputstreams before deleting ;)