For example, the guys from MicroEJ did the things the right way and don't have any issues with Oracle,
http://www.microej.com/products/device-software-development/...