tomato
tomato

Reputation: 841

I have no idea why Eclipse can't recognize the java.io library

I have Java JDK 1.7.0_07 installed and I made sure that the Java build path in Eclipse is pointing to the right directory in my system. How come my machine complains of not having the 'File' object available? I have made sure i imported java.io.*. What could be wrong?

Upvotes: 8

Views: 11641

Answers (1)

aymeric
aymeric

Reputation: 3895

Just make sure the JRE System Library is part of your build path (see the picture below). Check that the System library is set and if not, click on Add library and select JRE System Library.

enter image description here

Upvotes: 16

Related Questions