added minimal java support