• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

can java communicate with windows api?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ya sure java can communicate with windows API using JNI.
for more details visit sun's tutorial on JNI.
 
gsrikumar gopal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic