Some classes are missing when I have installed the JDK

Some classes in the IO package, like File are missing from the IO package. Or at least NetBeans can't find them. For instance, DataInputStream works:

import java.io.DataInputStream; (no error)

import java.io.File; (error: can not find symbol, symbol: class File,

location package java.io)

To solve this problem, I uninstalled the JDK and Netbeans. Then I downloaded the JDK again and installed it, then I installed Netbeans. But the same thing happened again. Why are these classes missing from the IO package? I know they should be there, because File is in the IO package in the API Specification:

http://java.sun.com/j2se/1.5.0/docs/api/index.html

[689 byte] By [Eyvind5a] at [2007-10-2 8:44:04]
# 1
I tested and I found out that the problem is caused by Netbeans. When I compile them with the Javac on the commando prompt, everything works like it should. But why can't Netbeans find these classes?
Eyvind5a at 2007-7-16 22:46:21 > top of Java-index,Desktop,Deploying...
# 2
I get the same error when I use another IDE. Why can't the compilator find some classes in the IO package?
Eyvind5a at 2007-7-16 22:46:21 > top of Java-index,Desktop,Deploying...
# 3
Errors in your code may be causing it to not parse correctly.
ChuckBinga at 2007-7-16 22:46:21 > top of Java-index,Desktop,Deploying...
# 4
I have tested with code examples from Sun, and it is still the same problem.
Eyvind5a at 2007-7-16 22:46:21 > top of Java-index,Desktop,Deploying...