Results 1 to 3 of 3
  1. #1
    vyasvalluri is offline Member
    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Question NTEventLogAppender java.lang.UnsatisfiedLinkError

    Hi,

    I have written sample program for writing Windows Event logs using log4j NTEventLogAppender. I have copied NTEventLogAppender.dll into windows system path. But when i run this program i am getting java.lang.UnsatisfiedLinkError. I think this dll is wrong. NTEventLogAppender is trying to load NTEventLogAppender.x86.dll but this is not available. When i download Log4j-1.2.17 i got only these two dlls NTEventLogAppender.dll, NTEventLogAppender.amd64.dll, I could not found this dll in Welcome - Apache Logging Services

    Can some one suggest what is wrong in my program and where can i get NTEventLogAppender.x86.dll?

    Log4j version is : Log4j-1.2.17

    Sample program:

    import org.apache.log4j.Level;
    import org.apache.log4j.Logger;
    import org.apache.log4j.PatternLayout;
    import org.apache.log4j.nt.NTEventLogAppender;


    public class Log4jTest {
    static final Logger ntLogger = Logger.getLogger("Log4NTEvent");

    public static void main(String[] args) {
    PatternLayout myLayout = new PatternLayout("%-4r [%t] %-5p %c %x - %m%n");
    try {
    NTEventLogAppender eventLogAppender = new NTEventLogAppender("Log4j", myLayout);
    ntLogger.addAppender(eventLogAppender);
    ntLogger.setAdditivity(false);
    ntLogger.setLevel(Level.ALL);
    System.out.println("Successfully initialized NTEventLogAppender :-)");
    } catch(java.lang.UnsatisfiedLinkError e) {
    System.out.println("Initialization Failed for NTEventLogAppender :-( "+e);
    }
    }

    }

    Error

    .java.lang.UnsatisfiedLinkError: org.apache.log4j.nt.NTEventLogAppender.registerEve ntSource(Ljava/lang/String;Ljava/lang/String;)I

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: NTEventLogAppender java.lang.UnsatisfiedLinkError

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    vyasvalluri is offline Member
    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Default Re: NTEventLogAppender java.lang.UnsatisfiedLinkError

    Please give me suggestions on the above topic.

    Regards
    Veda.

Similar Threads

  1. java.lang.UnsatisfiedLinkError: mqjbnd05
    By sasi25 in forum Advanced Java
    Replies: 1
    Last Post: 12-30-2009, 04:48 PM
  2. java.lang.UnsatisfiedLinkerror: no swt-carbon-3449 or ....
    By cristo_haris in forum Advanced Java
    Replies: 3
    Last Post: 04-24-2009, 10:23 AM
  3. Replies: 0
    Last Post: 04-23-2009, 08:17 AM
  4. java.lang.UnsatisfiedLinkError
    By sunil.mact in forum Advanced Java
    Replies: 4
    Last Post: 03-03-2009, 05:36 PM
  5. java.lang.UnsatisfiedLinkError: JAWT_GetAWT()
    By Albert in forum AWT / Swing
    Replies: 2
    Last Post: 07-01-2007, 04:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •