Most Google cloud services require an application to be authorized for access.
A service account is a special Google account that belongs to a deployed
application in a particular Google Cloud project instead of an
individual end user. When running on App Engine, the Cloud Client
Libraries for Java use the service account to call Google service APIs.
When you run the same application in the App Engine emulator on your
local box, you need to specify the Google Cloud project and the service
account.
Configuring access for a local server
To configure your local server to access the Cloud Client Libraries for Java:
Select Run > Run Configurations.
Either create a new App Engine Local Server run configuration, or
select an existing one.
Open the Cloud Platform tab.
Select the Account you want to use, or add a new account.
Select the Project associated with your application.
Select Create New Key.
Eclipse creates a new service key and displays the path in the
Service key field.
Select Apply.
You can also select a service account key you have created in the API console
and downloaded to your local file system as a JSON file.
[[["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-03-21 UTC."],[[["Cloud Tools for Eclipse is only compatible with the App Engine Java 8 runtime, which will reach its end of support on January 31, 2024, after which deploying new or updating existing applications on Java 8 will be unavailable."],["App Engine Java projects utilize the Cloud Client Libraries for Java to interface with Google Cloud APIs."],["When operating on App Engine, the Cloud Client Libraries for Java utilize a service account to make calls to Google service APIs."],["To configure a local server for accessing Cloud Client Libraries for Java, users must set up an App Engine Local Server run configuration, choose or add a Google account, select the project, and either create a new service key or utilize a previously generated JSON service key."]]],[]]