Java versions from cpp