Skip to content

jdog3/JavaAccessBridge.Net-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Access Bridge .Net Sample

This is a really basic sample application on how to use the Java Access Bridge in .Net. It's a VS2010 project that targets .Net 2. It's able to read the entire control hierarchy of a java app and dump it to screen. For my purposes that's all I needed. If you're just starting out with the JAB on .Net this should be a good head start for whatever you need to do.

To use the sample app:

  • Install Java and the Java Access Bridge
  • Open and run the sample solution in VS2010 or higher
  • Open Java app of interest
  • Use Spy++ or some other tool to get the window handle to the java window (in hex format)
  • Enter the windle handle into the sample app and click "Dump Control Hierarchy"

This is a slightly tweaked copy of some code I found in an OTN forum post. A big thanks goes out to them. I just figured I'd make the code a bit more findable and easier to get started with. It adds getting the value of the control and some info of the control tree hierarchy to make it easier to find controls of interest.

About

A simple sample of how to use the Java Access Bridge in .Net to dump the control hierarchy of a Java applet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published