How to do it…

Let's go through the following steps:

  1. From the Run menu, select Run configurations….
  2. On the left-hand side of the dialog box, you will see a Java application list.
  3. Select the name of the class where you will be using the GCP. You may not be able to do this until an appropriate class is created.
  4. Next, select the Environment tab.
  5. Select the New… button to bring up the New Environment Variable dialog box:

  1. Add GOOGLE_APPLICATION_CREDENTIALS to the Name field.
  1. Add the path and the name of your JSON file to the Value field. This file was downloaded as illustrated in the previous recipe, Getting ready to use the Google Cloud Platform.
  2. Select the OK button. You will then see the variable added, which will look similar to the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.4.176