Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5968347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:04:38+00:00 2026-05-22T20:04:38+00:00

Hy ppl, I’m having a problem trying to use Log4J’s NTEventLogAppender. I’ve set my

  • 0

Hy ppl,

I’m having a problem trying to use Log4J’s NTEventLogAppender.

I’ve set my Log4J properties like this:

log4j.rootLogger=DEBUG, CA, NTEventLog 


    #Console Appender 
    log4j.appender.CA=org.apache.log4j.ConsoleAppender 
    log4j.appender.CA.layout=org.apache.log4j.PatternLayout 
    log4j.appender.CA.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n 

    #File Appender 
    log4j.appender.FA=org.apache.log4j.FileAppender 
    log4j.appender.FA.File=sample.log 
    log4j.appender.FA.layout=org.apache.log4j.PatternLayout 
    log4j.appender.FA.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

    #Event Log Appender
    log4j.appender.NTEventLog=org.apache.log4j.nt.NTEventLogAppender
    log4j.appender.NTEventLog.source=ESB Web Services


    # Set the logger level of File Appender to WARN 
    log4j.appender.FA.Threshold = WARN

Following the advice here, I’ve placed NTEventLogAppender.amd64.dll file on my System32 Folder, but when I try to instance a class that uses a Logger I get this exception:

Exception in thread “main” java.lang.UnsatisfiedLinkError: NTEventLogAppender (Not found in java.library.path)

What’s wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:04:39+00:00Added an answer on May 22, 2026 at 8:04 pm

    This is to allow you to debug easily:

    If you did add the dll in the System32 folder, make sure that the directory is also included in Java’s library path java.library.path:

    To test (via code):

    System.out.println(System.getProperty("java.library.path"));
    

    Output (partial):

    C:\Program
    Files\Java\jdk1.6.0_21\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program
    Files/Java/jre6/bin/client;C:/Program
    Files/Java/jre6/bin;C:\Program
    Files\Common Files\Microsoft
    Shared\Windows Live;C:\Program
    Files\Borland\Delphi7\Bin;C:\Program
    Files\Borland\Delphi7\Projects\Bpl\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
    Files\Microsoft SQL
    Server\80\Tools\BINN;C:\Program
    Files\RemObjects
    Software\Everwood\Bin;C:\Program
    Files\RemObjects Software\RemObjects
    SDK for Delphi\Dcu\D7;C:\Program
    Files\Microsoft SQL
    Server\100\Tools\Binn\;C:\Program
    Files\Microsoft SQL
    Server\100\DTS\Binn\;C:\Program
    Files\Microsoft SQL
    Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program
    Files\Microsoft Visual Studio
    9.0\Common7\IDE\PrivateAssemblies\;C:\Program
    Files\Microsoft SQL
    Server\80\Tools\Binn\;c:\Program
    Files\Microsoft SQL
    Server\90\Tools\binn\;C:\Program
    Files\Embarcadero\Delphi
    Prism\bin;C:\Program Files\Developer
    Express.VCL\Library\Delphi14;C:\Program
    Files\QuickTime\QTSystem\;C:\Program
    Files\Developer
    Express.VCL\Library\Delphi7

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw some ppl write code like this: They use __ in the naming
ppl, I've to develop a Database like this, Here, I've a list of words.
i don't like this kind of tool myself, but ppl say its the fastest
I posted another question similar. This is my old code as some ppl say
I use parallel_for from ppl.h and when I run the program from visual studio
I`m trying to customize my TabBar in xcode,ios, however I just found ppl saying
The problem im having is that I have a table that when a user
Like most ppl, I started with and still do a lot of imperative code(mostly
I would like to use exactly same search box in my app, (to search
char *s = hello ppl.; for (i = 0; i < strlen(s); i++) {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.