It is not possible that this code gives the error that you stated above.
can not give this error: Constructor BufferedWriter(File,boolean) is undefined.
You are not using a constructor for bufferedwriter using File and boolean parameter. You are using a constructor for FileWriter using File and boolean parameters. FileWriter does have this constructor but when you look at the javadoc for JDK 1.4 you can see that it is added in 1.4. So, your problem might be that you are not using JDK 1.4 but an earlier version.