Is the line "import java.io.*;" the first line of your program by any chance? If so, netbeans probably thinks that you're trying to declare the package in which that file lies. You would correctly declare that with something like [code=java]package my.package.for. this.project;[/code] as the first line of your code.
Comment