java.util cannot be resolved !
May 20, 2008
Context :
After upgrading my java sdk on my linux, eclipse did not seem to recognise any of the java packages anymore. At first I thought, “… yep that’s probably because eclipse doesn’t reference the latest version…”, only to be proven incorrect. After hours of trying to configure eclipse properly, I was beginning to lose hope. I had already tried….
1) to select the correct version under the ‘preferences > java > installed JREs’,
2) to select the correct compiler compliance level under ‘preferences > java > compiler’,
3) to reselect the correct server version under ’server > installed runtimes’,
… but to no avail !
Solution :
Alhumdulillah, eventually after some time the problem was resolved. Essentially, the problem was that after the java upgrade on my machine, somehow eclipse managed to ‘unbound’ a few libraries from the build path. This unbinding was undone to reactive the libraries as follows…
Step 1: Select the project properties from the ‘Project Explorer’.
Step 2: Select ‘Java Build Path > Libraries’.
Step 3: Select individually the ‘unbound’ libraries, press ‘Edit…’ and reselect (re-bind) the appropriate versions. Particularly in my case the…
i) ‘JRE System Library [...version...] > Edit… > Workspace default JRE (…version…)’, and
ii) ‘Apache Tomcat v6.0 [apache-tomcat-...version...] > Edit… > apache-tomcat-…version…‘.
… and voala. Eclipse back to normal. If you have any further comments, please let me know.
… Wa Allahu A’lam.
Entry Filed under: Eclipse, Java. Tags: apache, Eclipse, Java, java.util cannot be resolved, libraries, sdk.
8 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed
1.
Aitor | May 5, 2009 at 12:06 am
Thanks a lot! worked for me after ubuntu upgrade to Jaunty (8.10 -> 9.06)
2.
Michael | May 7, 2009 at 3:51 pm
Thanks, that saved my day!
3.
Christoph | May 22, 2009 at 11:34 am
Much needed. Thanks!
4.
Naina | August 9, 2009 at 2:37 pm
Thanx a lot
5.
ibnaziz | August 25, 2009 at 10:44 am
you are all very welcome….
6.
sandrar | September 10, 2009 at 10:29 pm
Hi! I was surfing and found your blog post… nice! I love your blog.
Cheers! Sandra. R.
7.
Karthik | December 10, 2009 at 4:32 am
Thanks a lot for sharing….This worked out for me too
Got a smile in my face after 6 hour struggle.
8.
Adem | December 22, 2009 at 8:39 pm
Sükran brother. Saves me lot of time while searching in several plugin folders.