So what I am assuming is this is probably an Editor problem more than a
JAVA problem since you are not compiling at the command line.
1. See if you can compile it at the command line
2. In Jcreator, go to Configure --> Options
3. Click on JDK Profiles
4. See if there is one. If it is red, then something is wrong.
5. If there is not one, click the New button and tell JCreator where your jdk folder is on your hard drive.
6. If all that fails, let me know.