How to set GOOGLE_APPLICATION_CREDENTIALS for Google Compute Engine?
<p>I have Google Compute Engine's Credentials file , renamed as key.json. The next step is to set the environment variable with name GOOGLE_APPLICATION_CREDENTIALS. But it says error: Error reading credential file from environment variable GOOGLE_APPLICATION_CREDENTIALS ...path..  Error reading credentials from stream, 'type' field not specified.</p>

<p><code>httpTransport = GoogleNetHttpTransport.newTrustedTransport();
GoogleCredential credential = GoogleCredential.getApplicationDefault();</code></p>

<p>I want to know how to set variable GOOGLE_APPLICATION_CREDENTIALS in eclipse?</p>