1

以下是错误。

WARNING: Application name is not set. Call Builder#setApplicationName.

Exception in thread "main" java.io.FileNotFoundException: document.txt (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at com.google.api.client.http.FileContent.getInputStream(FileContent.java:71)
    at com.google.api.client.googleapis.media.MediaHttpUploader.upload(MediaHttpUploader.java:361)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:418)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
    at DriveCommandLine.main(DriveCommandLine.java:56)
4

1 回答 1

-1

快速启动应用程序将 document.txt 文件从本地文件系统上传到 Drive。请在执行代码之前将任何名为 document.txt 的文件放在应用程序的工作目录中。

于 2013-06-26T18:11:07.407 回答