The most reliable way, I think, is to use the NestedVM:http://nestedvm.ibex.org/It is used, for example, to provide the 100%-pure-Java SQLite:http://www.zentus.com/sqlitejdbc/