• Post Reply Bookmark Topic Watch Topic
  • New Topic

Run a java application but failed  RSS feed

 
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I have the java program in myEclipse. When I run the program, it shows some warnings and with silient way. I do not find it is running.
Is there the warnings that I need to solve to make it run???
Capture.PNG
[Thumbnail for Capture.PNG]
 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it shows:
log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just find below solution from search web. It solved::

It looks like you need to add the location of your log4j.properties file to the Classpath in Eclipse.

Make sure your project is open in Eclipse, then click on the "Run" menu at the top of Eclipse and click on the following:

Run
Run Configurations
Classpath (tab)
User Entries
Advanced (button on the right)
Add Folders
then navigate to the folder that contains your log4j.properties file
Apply
Run
The error message should no longer appear.
 
Ranch Foreman
Posts: 3068
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a note.
Those are warnings, not errors.
The code will still execute.  It's just that the logging framework won't work properly.
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But well done correcting it and posting the solution
You may have an analogous CLASSPATH problem causing your other problem about Struts.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!