Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java and Windows Event Viewer

Status
Not open for further replies.

Claulle

Technical User
May 22, 2003
37
DK
Hi

Is it possible to make a query into Windows' Event Viewer from Java. I wish to make a program that can eg. tell me all the warnings that have been up til now.

Many thanks.

Claus

 
It will not be possible in the Sun Java distributions - because Java is platform independant - so any platform-specific functions are not available.


--------------------------------------------------
Free Database Connection Pooling Software
 
What a shame :/

Thanks for the answer tho !
 
Try using C++, or C# and creating a DLL - you can then use JNI to plug in your native code to your Java :)

Loads of hassle though !

--------------------------------------------------
Free Database Connection Pooling Software
 
Sedj -
Does Java have any SNMP classes (Simple Network Management Protocol)?

I think Windows will respond to those queries (via it's WMI protocol), and you might be able to use one of them to query the eventlog.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
This looks good!

Im not a very experienced programmer and i have no idea how to take this on, so i might have a few hours of reading to do :)

Thanks a bunch for the help so far. Im sure i will get back here when i get problems again :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top