Fixing up Java version.