I'm new to Java, just trying to make a simple utility to move, copy & delete some wav files on my pc, but java.io.File delete() fails. The wav files in question have read-only unchecked (in windows explorer) but File canWrite() returns false & setWritable(true) fails. I must be doing something stupid because nobody seems to have had this problem before?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Try to run the garbage collector:
http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/System.html
You are using a relative path and you are not in the directory you think you are.
Specify absolute paths or determine the current path before starting.
Run the java application as administrator. Then try.