| Author |
Can't resolve java.util.concurrent
|
|
| tsxn26@gmail.com 2006-02-20, 7:00 pm |
| I'm having a problem of not being able to resolve the
java.util.concurrent package in Eclipse. I'm running JSE 1.5.0.06 JDK
and JRE. Anyone have any suggestions on how to get the package to
resolve? Thanks
| |
| Oliver Wong 2006-02-20, 7:00 pm |
| <tsxn26@gmail.com> wrote in message
news:1140464328.213617.300420@g44g2000cwa.googlegroups.com...
> I'm having a problem of not being able to resolve the
> java.util.concurrent package in Eclipse. I'm running JSE 1.5.0.06 JDK
> and JRE. Anyone have any suggestions on how to get the package to
> resolve? Thanks
>
Assuming that the symptoms of the problem are that a red squiggly
underline appears under "java.util.concurrent", and the mouse over error
message mentions something about not being able to resolve this package,
have you tried right clicking on the icon in the left margin corresponding
with the red squiggly underline, and selecting 'quickfix' from the menu to
see a list of possible fixes? You probably want to select the one that says
something about "importing" or "adding import statement" or something to
that effect.
- Oliver
| |
| tsxn26@gmail.com 2006-02-20, 7:00 pm |
| I just tried the 'quickfix' function and was only shown the choices of
organizing imports and removing imports which didn't fix the resolving
problem.
| |
| Daniel Dyer 2006-02-20, 7:00 pm |
| On Mon, 20 Feb 2006 20:19:22 -0000, <tsxn26@gmail.com> wrote:
> I just tried the 'quickfix' function and was only shown the choices of
> organizing imports and removing imports which didn't fix the resolving
> problem.
java.util.concurrent is a Java 5 package, are you certain you are using
5.0? If I remember correctly, Eclipse defaults to 1.4 on new projects.
Dan.
--
Daniel Dyer
http://www.dandyer.co.uk
| |
| tsxn26@gmail.com 2006-02-20, 7:00 pm |
| I figured out the problem and the fix. In eclipse I had to go to
"windows->preferences->installed jres" and add the 1.5.0_06 JRE and
make it default.
|
|
|
|