I have installed openjdk-6-jdk on my machine linux , the function renameTo does not work ?
have you an idea please about this problem ?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Based on those symptoms, I’d say that you are attempting to rename a file from one file system to another.
The "mv" command can do this, but the
File.renameTo(...)cannot. (And incidentally, neither can the "rename" system call.) This is not an OpenJDK bug. Rather it is a documented limitation. The javadoc says this:The fact that it works on some other machine may simply be down to the fact that the source and destination for the move are in the same file system.