The plugins provide additional functionality, such as key management for service accounts. Refer
to each plugin's documentation for details.
Using the client library
To use the Java client library for Cloud Translation - Advanced, you must
use the com.google.cloud.translate.v3 package. See how to
translate text
for additional details.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Java client library\n\n| **Note:** Google provides the Cloud Translation API client library for Java as a single artifact for both Cloud Translation - Advanced and Cloud Translation - Basic. This page describes how to use the client library for Cloud Translation - Advanced. To use the client library for Cloud Translation - Basic, see the [installation instructions](/translate/docs/reference/libraries/v2/java).\n\n\nThis page provides reference documentation and related resources for the\nCloud Translation Java client library.\n\n### Installation\n\n\nTo install the client library:\n| **Caution:** The Java client library does not support Android.\n\nIf you are using [Maven](https://maven.apache.org/), add\nthe following to your `pom.xml` file. For more information about\nBOMs, see [The Google Cloud Platform Libraries BOM](https://cloud.google.com/java/docs/bom). \n\n \u003cdependencyManagement\u003e\n \u003cdependencies\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003elibraries-bom\u003c/artifactId\u003e\n \u003cversion\u003e26.66.0\u003c/version\u003e\n \u003ctype\u003epom\u003c/type\u003e\n \u003cscope\u003eimport\u003c/scope\u003e\n \u003c/dependency\u003e\n \u003c/dependencies\u003e\n \u003c/dependencyManagement\u003e\n\n \u003cdependencies\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003egoogle-cloud-translate\u003c/artifactId\u003e\n \u003c/dependency\u003e\n \u003c/dependencies\u003e\n\nIf you are using [Gradle](https://gradle.org/),\nadd the following to your dependencies: \n\n implementation 'com.google.cloud:google-cloud-translate:2.72.0'\n\nIf you are using [sbt](https://www.scala-sbt.org/), add\nthe following to your dependencies: \n\n libraryDependencies += \"com.google.cloud\" % \"google-cloud-translate\" % \"2.72.0\"\n\nIf you're using Visual Studio Code, IntelliJ, or Eclipse, you can add client libraries to your\nproject using the following IDE plugins:\n\n- [Cloud Code for VS Code](/code/docs/vscode/client-libraries)\n- [Cloud Code for IntelliJ](/code/docs/intellij/client-libraries)\n- [Cloud Tools for Eclipse](/eclipse/docs/libraries)\n\nThe plugins provide additional functionality, such as key management for service accounts. Refer\nto each plugin's documentation for details.\n| **Note:** Cloud Java client libraries do not currently support Android.\n\nUsing the client library\n------------------------\n\nTo use the Java client library for Cloud Translation - Advanced, you must\nuse the `com.google.cloud.translate.v3` package. See how to\n[translate text](/translate/docs/advanced/translating-text-v3#translating_text)\nfor additional details."]]