on 07-20-2009 9:56 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Import java.util.iterator
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.