Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Organize imports problem
Organize imports problem [message #115138] Fri, 22 August 2003 15:52 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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).
Previous Topic:ILightweightLabelDecorator update problem
Next Topic:adding menu items at run-time
Goto Forum:
  


Current Time: Thu Jul 17 06:14:34 EDT 2025

Powered by FUDForum. Page generated in 0.08333 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top