Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
pallavi1974
Post subject: the import org.apache.log4j can not be resolved  PostPosted: Dec 31, 2004 - 06:36 PM



Joined: Dec 23, 2004
Posts: 9

Hi,
I got problems like
the import org.apache.log4j can not be resolved;
Logger can not be resolved.
can somebody know why these errors are coming??
Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Dec 31, 2004 - 11:12 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6799

Can you please post all the information we request in the Posting Guidelines thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pallavi1974
Post subject:   PostPosted: Jan 03, 2005 - 08:21 PM



Joined: Dec 23, 2004
Posts: 9

Hi Scott,
What operating system and version are you running?
Windows XP SP1
What Eclipse version and build id are you using? (Help > About Eclipse Platform)
eclipse 3.0.1
build 200409161125
- Was Eclipse freshly installed for MyEclipse?
yes
- If not, was it upgraded to its current version using the update manager?
- Are any other external plugins installed?
no
- How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
8
What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
3.8.3
What JDK version are you using to run Eclipse? (java -version)
jdk1.4.2_03
What JDK version are you using to launch your application server?
jdk1.4.2_03
What steps did you take that resulted in the issue?
I have code that is using log4j.i imported that file in to eclipse.I got this "the import
org.apache.log4j can not be resolved,Logger can not be resolved."
What application server are you using?
weblogic 8.1 SP2
Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
no exceptions in .log file
Thanks
PALLAVI
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Jan 03, 2005 - 09:06 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6799

Pallavi,

Quote:

I have code that is using log4j.i imported that file in to eclipse.I got this "the import
org.apache.log4j can not be resolved,Logger can not be resolved."

Did you import the log4j jar file into your project? Did you add it to the classpath? What type of project are you using?

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pallavi1974
Post subject:   PostPosted: Jan 03, 2005 - 09:10 PM



Joined: Dec 23, 2004
Posts: 9

I am using java project. log4j.jar file is in the lib directory of my project.
Can u please tell me how to add it to classpath??
Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Jan 03, 2005 - 09:14 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6799

Right click on the project in the Package Explorer View and select Properties > Java Build Path > Libraries > Add Jar... and select the jar file in your project.

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pallavi1974
Post subject:   PostPosted: Jan 03, 2005 - 09:37 PM



Joined: Dec 23, 2004
Posts: 9

Thank you very much.I got it.
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Jan 03, 2005 - 09:47 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6799

No problem. But I would suggest you read the Java Developers Guide in the Eclipse Help System at Help > Help Contents, just to get the basics down. Eclipse has a big learning curve and the docs do help to get you over the hump pretty well. :-)

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
maximuszen
Post subject:   PostPosted: Aug 21, 2006 - 05:30 PM
Registered Member
Registered Member


Joined: May 12, 2006
Posts: 32

I've been using eclipse for a while and I'm getting this error. When I click Add jar there is no items in the list. Do you mean add external jar? When I do there is a duplicate copy of the log4j in my deployment this creates errors on its own.
 
 View user's profile Send private message  
Reply with quote Back to top
kalyan.jitta
Post subject: the import org.apache.log4j can not be resolved  PostPosted: Mar 26, 2010 - 01:56 PM



Joined: Mar 26, 2010
Posts: 3

hi,

iam adding my properjavardp appl in eclipse and i compiled,but i got a this msg the import org.apache.log4j can not be resolved, so plse give solution very soon
 
 View user's profile Send private message  
Reply with quote Back to top
kalyan.jitta
Post subject: RE: the import org.apache.log4j can not be resolved  PostPosted: Mar 26, 2010 - 01:57 PM



Joined: Mar 26, 2010
Posts: 3

plse send me solution very soon,because i work on that project[quote]
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: the import org.apache.log4j can not be resolved  PostPosted: Mar 29, 2010 - 05:26 AM
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

Kalyan,
Your issue is not clear, can you give some more information?
1. Can you copy paste your installation details from MyEclipse > Installation Summary > Installation Details?
2. Have you added the jar file to your projects build path(Right click on your project, select Build Path > Add External Archives from the context menu)?

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
kalyan.jitta
Post subject: RE: the import org.apache.log4j can not be resolved  PostPosted: Mar 29, 2010 - 10:12 AM



Joined: Mar 26, 2010
Posts: 3

hi,
give me the procedure of executing exist porperjava rdp in eclipse by using applets
 
 View user's profile Send private message  
Reply with quote Back to top
chevizflex
Post subject: RE: the import org.apache.log4j can not be resolved  PostPosted: Mar 15, 2011 - 04:31 PM



Joined: Mar 15, 2011
Posts: 1

Hello,
What operating system and version are you running?
Windows XP SP2
What Eclipse version and build id are you using? (Help > About Eclipse Platform)
myeclipse 7.5
build 20090609
- Was Eclipse freshly installed for MyEclipse?
no
- If not, was it upgraded to its current version using the update manager?
- Are any other external plugins installed?
flex builder 3 plug-in
- How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
4
What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
7.5
What JDK version are you using to run Eclipse? (java -version)
jdk1.5
What JDK version are you using to launch your application server?
jdk1.5
What steps did you take that resulted in the issue?
I have code that is using log4j.i imported that file in to eclipse.I got this "the import
org.apache.log4j can not be resolved,Logger can not be resolved."
What application server are you using?
JBoss v4.2
Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
no exceptions in .log file

i want to know, how to install .jar files & log4j in myeclispse and how to set the build path when we use Adobe Flex Plug-in.

Thanks
Chevi
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject: RE: the import org.apache.log4j can not be resolved  PostPosted: Mar 16, 2011 - 05:03 AM



Joined: Nov 11, 2010
Posts: 1524

chevizflex,

1) If working in a Web project you can add the jars to the lib directory and they should
automatically be found. You can also add the jars to your project's path
by changing the project build properties. Right click on your project and
select properties.

2) Here is a thread which discusses about log4j. Have a look at it :
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-26938-highlight-log4j.html

3) How are you trying to install Flex plugin? Is it through the update site ? Once the plugin is installed into MyEclipse you should be able to use it without making any changes to the build path. Also make sure that the version of Flex 3 plugin is compatible with the base version of Eclipse 3.4.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits