Cannot open class file 'filename' for writing
The compiler failed to generate the output .class file. This error usually occurs when the compiler cannot get write or create permission for the file. Ensure the file does not have its read-only attribute set, and that it is not currently in use by another process. This error can also occur when you are running or debugging the program that contains the specified .class file. Close all instances of the program and compile again.