choose appcontext that has a window
check reference
Fix components name to work with Java6 and Java7.
Add if statement to properly find AppContext.
Code cleaning
Merge pull request #8 from jakubkorepta/appcontext

Fix JavaAgent to work with both java6 and java7
fix disconnection problem on OSX
wait for a frame to be showing and it should not be console. also removed no output settings
added debuglogs
check window is visible
redirect process output to file to avoid freeze that happens in some cases
Merge pull request #9 from WojtekKowaluk/appcontext

redirect process output to file to avoid freeze that happens in some cases
added links to stderr and stdout files
Use background logger
changed link text
Merge branch 'appcontext'