cancel
Showing results for 
Search instead for 
Did you mean: 

missing type java.lang.Iterable

Former Member
0 Kudos

Hi,

When I try to run my application,I'm getting an error:

"This compilation unit indirectly references the missing type java.lang.Iterable (typically some required class file is referencing a type outside the classpath)"

How can I correct this?

Thanks and Regards,

Shyam.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Syam,

Iterable interface is introduced in Java1.5 . Check in ur NWDS which JRE it is referring to. If it is JRE1.4 , use java.util.Iterator instead of java.lang.Iterable or install jdk1.5 and in NWDS ->installed JREs> add jre 1.5 and rebuild the application.

Regards,

Srikanth

Edited by: Srikanth Thatipally on Jul 20, 2009 11:12 AM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Import java.util.iterator

Regards,

Sunaina Reddy T

Former Member
0 Kudos

Hi Shyam,

This is quite a common error. Just right click on your project and choose Properties. Then select Java Build Path--> Libraries Tab.

Here select "Add external JARs" and then browse to you j2sdk file in your file system and then click OK. Now Right click on your project and then Select "Reload". You problem should be resolved. Let me know if you still have problems.

Regards,

Gopal.