Link to home
Start Free TrialLog in
Avatar of Dcom4CIT
Dcom4CIT

asked on

JNI, WMI and Java

Is it possible to create a java application accessing WMI using the JNI interface? If so any example code or websites would be greatly appreciated.  
Avatar of Mick Barry
Mick Barry
Flag of Australia image

not without using MS's VM afaik.
If it supports a COM interface then try Jawin

http://jawinproject.sourceforge.net/
this approach may help depending on exactly what you want to do:

http://www.javaworld.com/javaworld/jw-11-2004/jw-1108-windowspm.html
> If it supports a COM interface then try Jawin

If what does?
It does support COM:

"Windows Management Instrumentation offers a powerful set of services, including query-based information retrieval and event notification. These services and the management data are accessed through a Component Object Model (COM) programming interface"

(From http://cwashington.netreach.net/main/library/wmiscript.html)
ASKER CERTIFIED SOLUTION
Avatar of jprgn
jprgn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial