• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calling from C to Java when using Java Accessibility

 
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 have been writing an accessibility application that uses a native DLL. My assistive technologies class is of course loaded using hte setting in accessibility.properties. This class loads a native DLL. Now I need to make a call back into the Java class from another native app(in Windows). Now i do this by having a thread always stay in the native part and wait for the signalling of an event by the other native app. THis is because i cannot cache the JNIenv pointer.. I dont know how to make a global ref out of that pointer. Now this thread system works but frequently hangs for mysterious reasons... I would very much like to avoid this method ... I have been looking at hte accessibility bridge code but am not able to find the method used there..
Now i dont want to use the invocation API since I am already in hte process space of a JVM. Is there some way to get a handle to a VM using hte process id or something like that ? Perhaps by using this i can solve my problem
Many thanks in advance
- Shyamal
Bangalore
 
reply
    Bookmark Topic Watch Topic
  • New Topic