log4j setup/import problem [message #281405] |
Sat, 19 February 2005 17:29 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02602 seconds