I don't think Steam lets you run Java in the overlay because that could reduce the performance of the 'main' game.
You could just run them both in a window next to each other...?
EDIT: Apparently there's also a downloadable version of Chrome that can run inside GMod. That might work.