Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » log4j setup/import problem
log4j setup/import problem [message #281405] Sat, 19 February 2005 17:29 Go to next message
Eclipse UserFriend
Originally posted by: joan.bukoskey.verizon.net

I am new to Java and the Eclipse environment. When I code:
import org.apache.log4j.Logger; I have the following message:
import org.apache.log4j cannot be resolved. I have set up a Classpath
Variable as:
LOG4J - C:/LOG4J/logging-log4j-1.2.9/dist/lib/log4j-1.2.9.jar in
Preferences->Java->Build Path. Any help would be greatly appreciated.
Thanks, bill
Re: log4j setup/import problem [message #281408 is a reply to message #281405] Sat, 19 February 2005 18:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

Try adding the jar to your build path as "external jar".

--
Chris Laffra, http://eclipsefaq.org


"William Koch" <joan.bukoskey@verizon.net> wrote in message
news:cv7t1b$qnf$1@www.eclipse.org...
> I am new to Java and the Eclipse environment. When I code:
> import org.apache.log4j.Logger; I have the following message:
> import org.apache.log4j cannot be resolved. I have set up a Classpath
> Variable as:
> LOG4J - C:/LOG4J/logging-log4j-1.2.9/dist/lib/log4j-1.2.9.jar in
> Preferences->Java->Build Path. Any help would be greatly appreciated.
> Thanks, bill
>
>
Re: log4j setup/import problem [message #281533 is a reply to message #281405] Mon, 21 February 2005 15:08 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

William Koch wrote:
> I am new to Java and the Eclipse environment. When I code:
> import org.apache.log4j.Logger; I have the following message:
> import org.apache.log4j cannot be resolved. I have set up a Classpath
> Variable as:
> LOG4J - C:/LOG4J/logging-log4j-1.2.9/dist/lib/log4j-1.2.9.jar in
> Preferences->Java->Build Path. Any help would be greatly appreciated.
> Thanks, bill
>
>

You've defined the variable to tell eclipse where log4j lives, now you
need to include that variable in the classpath for your Project.
Right-click the Project, choose properties, then Java Build Path, then
Libraries (tab). There you can add the variable to that Project.

HTH,
Eric
Previous Topic:undo / redo
Next Topic:SerialVersionUID
Goto Forum:
  


Current Time: Fri Mar 29 13:21:48 GMT 2024

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

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

Back to the top