Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » The import org.apache.commons cannot be resolved
The import org.apache.commons cannot be resolved [message #213085] Mon, 22 August 2005 17:19 Go to next message
Eclipse UserFriend
Originally posted by: boskovuk.yahoo.com

My file CategoryTree.java reports the error on this line:
import org.apache.commons.logging.Log;
This is the error:
The import org.apache.commons cannot be resolved


I have added:
commons-logging.jar
through:
Project -> Properties -> Java Build Path -> Libraries

The commons-logging.jar file is located in one of the project
subdirectories:
ourProject\web\WEB-INF\lib\commons-logging.jar


However, nothing is changed - Eclipse still reports the initial error.

What am I missing here?

thanks ...
Re: The import org.apache.commons cannot be resolved [message #213161 is a reply to message #213085] Tue, 23 August 2005 11:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: boskovuk.yahoo.com

Problem solved.

It was caused by the fact that Eclipse environment was set not to build
automatically (Project -> Build Automatically).

Even though I was adding a correct JARs (through Project - Properties - Java
Build Path - Libraries), Eclipse did not rebuild, meaning it didn't
recalculate new dependencies (and didn't apply them on the existing source).

PS
This setting (build automatically disabled) was intentionally set like this
due to the fact that we use Ant framework for build steps. I thought that
Eclipse build can be disabled. Apparently, Eclipse 'build' does more than
that and is needed to recalculate source code dependencies.

.... Bosko


"Bosko" <boskovuk@yahoo.com> wrote in message
news:6e6840e1e184ad6d2d5d2f36834d7ea3$1@www.eclipse.org...
> My file CategoryTree.java reports the error on this line:
> import org.apache.commons.logging.Log;
> This is the error:
> The import org.apache.commons cannot be resolved
>
>
> I have added:
> commons-logging.jar
> through:
> Project -> Properties -> Java Build Path -> Libraries
>
> The commons-logging.jar file is located in one of the project
> subdirectories:
> ourProject\web\WEB-INF\lib\commons-logging.jar
>
>
> However, nothing is changed - Eclipse still reports the initial error.
>
> What am I missing here?
>
> thanks ...
>
Re: The import org.apache.commons cannot be resolved [message #213168 is a reply to message #213161] Tue, 23 August 2005 11:38 Go to previous message
Eclipse UserFriend
Originally posted by: olivier_thomann.NOca.ibm.comSPAM

Bosko Vuk a écrit :
> This setting (build automatically disabled) was intentionally set like this
> due to the fact that we use Ant framework for build steps. I thought that
> Eclipse build can be disabled. Apparently, Eclipse 'build' does more than
> that and is needed to recalculate source code dependencies.
You need to build to update the markers.
But inside the editor (red line), the error should not appear even the
code is not build.
--
Olivier
Previous Topic:Any way to tell if app is being debugged?
Next Topic:JLS3 - J2SE 1.5 Parser
Goto Forum:
  


Current Time: Sun Jun 01 15:32:17 EDT 2025

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

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

Back to the top