Invoking Java from a C++ Game Engine and Rendering within it

I’ve managed to get the basics working in terms of invoking Java from the native game engine, tutorials are still welcome however, but I wanted to check on a couple of points:

  1. Is it possible to get Java through AWT and Swing to render inside a native game engine, and is it possible to feed it user input events?
  2. Are there any Licence issues invoking Java from a commercial engine?

Thanks for your help!

You can start a java process from your native code. For the rendering part,
take a look at JAWT:
http://java.sun.com/j2se/1.5.0/docs/guide/awt/1.3/AWT_Native_Interface.html

As for the legality, IANAL but I don’t see why it would be any different
from shipping your own jre with your applications, and AFAIK many do so.

Thanks,
Dmitri