make some of the examples work again
some work on java example build
some work on java examples