Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 707
tomato Avatar asked Sep 01 '12 10:09

tomato


1 Answers

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

like image 118
aymeric Avatar answered Oct 20 '22 03:10

aymeric