File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes can java communicate with windows api? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "can java communicate with windows api?" Watch "can java communicate with windows api?" New topic
Author

can java communicate with windows api?

gsrikumar gopal
Greenhorn

Joined: Sep 03, 2001
Posts: 2
I have to create a program such that my program should communicate with the windows os and find the number of application thats running currently in windows an what are they?
can i be able to do it?
pls provide me help its urgent..
netharam ram
Ranch Hand

Joined: Aug 09, 2001
Posts: 202
Ya sure java can communicate with windows API using JNI.
for more details visit sun's tutorial on JNI.
gsrikumar gopal
Greenhorn

Joined: Sep 03, 2001
Posts: 2
Originally posted by netharam ram:
Ya sure java can communicate with windows API using JNI.
for more details visit sun's tutorial on JNI.

thanks ram i will try and get to u back -bye
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I am trying to do the same thing. There are a variety of different ways to do this:
1) JNI -> A bit harder
2) Microsoft's JVM -> you can directly use win dlls without creating jni rapper dlls but you run into compatibility issues.
3) create c,c++ or vb program to get the list and then pipe that list into java program (not quite sure how to do this but certainly possible)
let me know how successful you have been so far?
And how r u distinguishing between running processes and applications?
khurram.
 
 
subject: can java communicate with windows api?
 
Similar Threads
DDE Server
How dose EJB(Server) communicate with delphi(client) Via corba! how to program ejb?
Best Linux Distribution for Me
how many ways do two java program communicate?
How an applet communicate with servlet