It seems to me that you need a package statement.
Before your import statement try adding this line

package javaapplication1;