简体   繁体   中英

Google Drive Java Quick Start Guide Warning

The following was the error.

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)

Quickstart application uploads document.txt file from your local filesystem to Drive. Please place any file named document.txt on working directory of your application before executing the code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM