The bin folder of the JDK is not where
you should be storing your *.java source files or compiled *.class files.
You get the error because you don't have permission to write to the bin folder on an operating system level. And that's good, because you shouldn't.
Put your source files somewhere in a different folder, not in the JDK's bin folder.