【发布时间】:2016-02-25 14:09:43
【问题描述】:
我有 Google Compute Engine 的凭据文件,重命名为 key.json。下一步是设置名为 GOOGLE_APPLICATION_CREDENTIALS 的环境变量。但它显示错误:从环境变量 GOOGLE_APPLICATION_CREDENTIALS ...path 读取凭据文件时出错。从流中读取凭据时出错,未指定“类型”字段。
httpTransport = GoogleNetHttpTransport.newTrustedTransport();
GoogleCredential credential = GoogleCredential.getApplicationDefault();
我想知道如何在eclipse中设置变量GOOGLE_APPLICATION_CREDENTIALS?
【问题讨论】:
标签: java eclipse google-compute-engine