Exception in thread main java.io.IOException: Your default credentials were not found. To set up Application Default Credentials for your environment

When we test the content generated on google Vertex AI, we copy the code on the GOOGLE platform, but an error occurs: Exception in thread "main" java.io.IOException: Your default credentials were not found. To set up Application Default Credentials for your environment. This is because your computer environment variable lacks one parameter: GOOGLE_APPLICATION_CREDENTIALS. Do not add this parameter to the path variable. Name a separate variable name: GOOGLE_APPLICATION_CREDENTIALS. The value is the json file address of the credentials you obtained from Google.

Windows settings: My Computer, Properties, Advanced Settings, Environment Variables
Linux: export GOOGLE_APPLICATION_CREDENTIALS="your_credentials_here"

Please also note: GOOGLE prompts that there is a problem with the version of google aiplatform in maven, it is not 0.4.0, but
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-aiplatform</artifactId>
<version>3.35.0</version>
</dependency>