Home » Eclipse Projects » Eclipse Platform » Organize imports problem
Organize imports problem [message #115138] |
Fri, 22 August 2003 15:52  |
Eclipse User |
|
|
|
My Organize Import and Quick Fix both fail to find a suggested import
for such standard classes as java.util.Vector. If I add the import
statement by hand, OI will leave it alone, but if I then remove it, it
still fails to find it. QF never suggests anything.
I read something in here about removing .log, restarting and trying it
again, which I tried but got the same problem.
One possible cause: I recently upgraded from 2.0 to 2.1.1, (and may have
done so poorly). To upgrade, I renamed the old c:\eclipse, installed
the new one, and moved my \eclipse\workspace directory from the old to
the new.
Any ideas on how to fix this would be greatly appreciated (including
whacks over the head with a cluestick, as I fear I may deserve given the
above upgrade).
Thanks,
Dave
|
|
|
Re: Organize imports problem [message #115203 is a reply to message #115138] |
Fri, 22 August 2003 17:53   |
Eclipse User |
|
|
|
When you execute the context menu on your project > Properties > Java Build
Path,
do you see a JRE library mentioned under the Libraries tab?
"David Jaquay" <djaquay@yahoo.com> wrote in message
news:bi5s8p$ulh$1@eclipse.org...
> My Organize Import and Quick Fix both fail to find a suggested import
> for such standard classes as java.util.Vector. If I add the import
> statement by hand, OI will leave it alone, but if I then remove it, it
> still fails to find it. QF never suggests anything.
>
> I read something in here about removing .log, restarting and trying it
> again, which I tried but got the same problem.
>
> One possible cause: I recently upgraded from 2.0 to 2.1.1, (and may have
> done so poorly). To upgrade, I renamed the old c:\eclipse, installed
> the new one, and moved my \eclipse\workspace directory from the old to
> the new.
>
> Any ideas on how to fix this would be greatly appreciated (including
> whacks over the head with a cluestick, as I fear I may deserve given the
> above upgrade).
>
> Thanks,
> Dave
>
|
|
|
Re: Organize imports problem [message #116004 is a reply to message #115203] |
Mon, 25 August 2003 10:12   |
Eclipse User |
|
|
|
Yes, I see an entry that says: "JRE_LIB - c:\...\rt.jar".
Thanks,
Dave
Chris Laffra wrote:
> When you execute the context menu on your project > Properties > Java Build
> Path, do you see a JRE library mentioned under the Libraries tab?
>
> "David Jaquay" <djaquay@yahoo.com> wrote in message
> news:bi5s8p$ulh$1@eclipse.org...
>
>>My Organize Import and Quick Fix both fail to find a suggested import
>>for such standard classes as java.util.Vector. If I add the import
>>statement by hand, OI will leave it alone, but if I then remove it, it
>>still fails to find it. QF never suggests anything.
>>
>>I read something in here about removing .log, restarting and trying it
>>again, which I tried but got the same problem.
>>
>>One possible cause: I recently upgraded from 2.0 to 2.1.1, (and may have
>>done so poorly). To upgrade, I renamed the old c:\eclipse, installed
>>the new one, and moved my \eclipse\workspace directory from the old to
>>the new.
>>
>>Any ideas on how to fix this would be greatly appreciated (including
>>whacks over the head with a cluestick, as I fear I may deserve given the
>>above upgrade).
|
|
|
Re: Organize imports problem [message #116060 is a reply to message #116004] |
Mon, 25 August 2003 11:12   |
Eclipse User |
|
|
|
Well.... Seems like something is really broken.
If you have your projects in CVS, create a new project and export the
projects into the new one.
You could also try temporarily removing the .metadata directory of your
workspace and restart.
Chris
"David Jaquay" <djaquay@yahoo.com> wrote in message
news:bid5ef$pcq$1@eclipse.org...
> Yes, I see an entry that says: "JRE_LIB - c:\...\rt.jar".
>
> Thanks,
> Dave
>
> Chris Laffra wrote:
> > When you execute the context menu on your project > Properties > Java
Build
> > Path, do you see a JRE library mentioned under the Libraries tab?
> >
> > "David Jaquay" <djaquay@yahoo.com> wrote in message
> > news:bi5s8p$ulh$1@eclipse.org...
> >
> >>My Organize Import and Quick Fix both fail to find a suggested import
> >>for such standard classes as java.util.Vector. If I add the import
> >>statement by hand, OI will leave it alone, but if I then remove it, it
> >>still fails to find it. QF never suggests anything.
> >>
> >>I read something in here about removing .log, restarting and trying it
> >>again, which I tried but got the same problem.
> >>
> >>One possible cause: I recently upgraded from 2.0 to 2.1.1, (and may have
> >>done so poorly). To upgrade, I renamed the old c:\eclipse, installed
> >>the new one, and moved my \eclipse\workspace directory from the old to
> >>the new.
> >>
> >>Any ideas on how to fix this would be greatly appreciated (including
> >>whacks over the head with a cluestick, as I fear I may deserve given the
> >>above upgrade).
>
|
|
|
Re: Organize imports problem [message #116225 is a reply to message #116060] |
Mon, 25 August 2003 11:36  |
Eclipse User |
|
|
|
Chris Laffra wrote:
> Well.... Seems like something is really broken.
Sure 'nuff.
> If you have your projects in CVS, create a new project and export the
> projects into the new one.
>
> You could also try temporarily removing the .metadata directory of your
> workspace and restart.
I think that fixed it. I renamed .metadata, and all of my projects
"disappeared". I copied the entire workspace directory off, just to be
safe, then recreated one of the projects I'm currently working on, and
it picked everything up just fine. I then removed some imports, pulled
up Quick Fix on them, and voila, all's back to working.
Thanks very much for the help,
Dave
> "David Jaquay" <djaquay@yahoo.com> wrote in message
> news:bid5ef$pcq$1@eclipse.org...
>
>>Yes, I see an entry that says: "JRE_LIB - c:\...\rt.jar".
>>
>>Thanks,
>>Dave
>>
>>Chris Laffra wrote:
>>
>>>When you execute the context menu on your project > Properties > Java
>
> Build
>
>>>Path, do you see a JRE library mentioned under the Libraries tab?
>>>
>>>"David Jaquay" <djaquay@yahoo.com> wrote in message
>>>news:bi5s8p$ulh$1@eclipse.org...
>>>
>>>
>>>>My Organize Import and Quick Fix both fail to find a suggested import
>>>>for such standard classes as java.util.Vector. If I add the import
>>>>statement by hand, OI will leave it alone, but if I then remove it, it
>>>>still fails to find it. QF never suggests anything.
>>>>
>>>>I read something in here about removing .log, restarting and trying it
>>>>again, which I tried but got the same problem.
>>>>
>>>>One possible cause: I recently upgraded from 2.0 to 2.1.1, (and may have
>>>>done so poorly). To upgrade, I renamed the old c:\eclipse, installed
>>>>the new one, and moved my \eclipse\workspace directory from the old to
>>>>the new.
>>>>
>>>>Any ideas on how to fix this would be greatly appreciated (including
>>>>whacks over the head with a cluestick, as I fear I may deserve given the
>>>>above upgrade).
|
|
|
Goto Forum:
Current Time: Thu Jul 17 06:14:34 EDT 2025
Powered by FUDForum. Page generated in 0.08333 seconds
|