Fixing some more examples related to the java backend.