473,395 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

logs are not pring on console java the java file.

in console loggers are not printing. can any body tell me the reason. i set the classpath for log4j.jar are log4j.xml. but i am not getting.
Oct 15 '14 #1
2 1598
logs are not printing on console java the java file
Oct 15 '14 #2
chaarmann
785 Expert 512MB
It is impossible to tell the reason without any info about your setup (e.g. what is your classpath, where is your log4j.jar located, what is your code that prints the log, are there any error messages)

Why don't you set a breakpoint at the line that prints the log in the Eclipse debugger and then trace if a log4j-class from the jar will be called?
If it will be called, then maybe in your log4j config file are wrong entries. If it will not be called, then your log4j.jar is not loaded, maybe because your log4j.jar is not in the correct directory given in the classpath.
Oct 15 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jan Meyer | last post by:
Where (aka what directory) do you put a java.policy file on a website for a particular applet??? There are presently no java.policy files on the web server. tia
1
by: Ethics | last post by:
Hi, I would like to use asp to call a java class file with arguments in methods for a web database application. May I know how to call the following class ? say : package wkflow; //all the...
6
by: Jamie | last post by:
I'm writing this routine that calls the length() member of java.io.File. Is this object generally available in most mainstream browsers, or do some of them lock it down?
3
by: MJ | last post by:
I'm trying to stream the contenttype of "application/x-java-jnlp-file" via asp.net/c#, but the client only sees it as a plain text file. Example: Response.Clear(); Response.ClearHeader();...
1
by: Larry Rebich | last post by:
I'm using some Java Script I found that supports a 'back' button on my ASP.Net page. The Asp.Net page uses a Master page. I thought I'd put the Java Script in a Java Script file . The thought was...
2
Saghar
by: Saghar | last post by:
Hi, Could somebody help me about this topic? I want to know how we can call and execute a non-java source file in a java application. For example, a simple Java application is run, there is an...
2
by: wolverine | last post by:
Hi, I recently read that every java .class file, is written in a specific binary format. http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html I just want to know whether...
1
by: balkuzhali | last post by:
How to call External Java script file in Jsp
1
by: noopurtiwari | last post by:
Can anybody please explain me what exactly happens when i add the line permission java.net.SocketPermission "localhost:1024-","listen";in the java.policy file of my jre installation. Thanks in...
0
by: WendyYap | last post by:
When I try to play online game this console appear:Java Plug-in 10.5.0.06 Using JRE version 1.7.0_05-b06 Java HotSpot(TM) Client VM User home directory = C:\Users\user...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.