<p>Does anyone have any pointers on how to read the Windows EventLog without using JNI? Or if you <em>have to</em> use JNI, are there any good open-source libraries for doing so?</p>

[{'answer_id': 78015, 'author': 'Sanjaya R', 'author_id': 9353, 'author_profile': 'https://Stackoverflow.com/users/9353', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://bloggingabout.net/blogs/wellink/archive/2005/04/08/3289.aspx" rel="nofollow noreferrer">http://bloggingabout.net/blogs/wellink/archive/2005/04/08/3289.aspx</a>\nand\n<a href="http://www.j-interop.org/" rel="nofollow noreferrer">http://www.j-interop.org/</a></p>\n'}, {'answer_id': 78035, 'author': 'Flint', 'author_id': 11877, 'author_profile': 'https://Stackoverflow.com/users/11877', 'pm_score': 0, 'selected': False, 'text': '<p>You\'ll need to use <a href="http://en.wikipedia.org/wiki/Java_Native_Interface" rel="nofollow noreferrer">JNI</a>.</p>\n'}, {'answer_id': 78066, 'author': 'Cheekysoft', 'author_id': 1820, 'author_profile': 'https://Stackoverflow.com/users/1820', 'pm_score': 1, 'selected': False, 'text': '<p>You may want to consider looking at <a href="http://www.jinvoke.com/" rel="nofollow noreferrer">J/Invoke</a> or <a href="https://github.com/twall/jna/" rel="nofollow noreferrer">JNA (Java Native Access)</a> as an alternative to the much berated JNI.</p>\n'}, {'answer_id': 3832161, 'author': 'dB.', 'author_id': 123094, 'author_profile': 'https://Stackoverflow.com/users/123094', 'pm_score': 2, 'selected': False, 'text': '<p>JNA 3.2.8 has both an implementation for all event logging functions and a Java iterator. Read <a href="http://code.dblock.org/ShowPost.aspx?id=125" rel="nofollow">this</a>.</p>\n\n<pre><code>EventLogIterator iter = new EventLogIterator("Application");         \nwhile(iter.hasNext()) { \n    EventLogRecord record = iter.next(); \n    System.out.println(record.getRecordId() \n            + ": Event ID: " + record.getEventId() \n            + ", Event Type: " + record.getType() \n            + ", Event Source: " + record.getSource()); \n} \n</code></pre>\n'}]
['https://Stackoverflow.com/questions/77813', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1693/']