Compiled and running code here.
Steps:
Create / select the project Google Developer Console , enable storage API-interface, create a new client ID, so that you have a valid CLIENT_ID, CLIENT_SECRET, REDIRECT_URI.
google-api-services-drive-v2-rev123-java-1.18.0-rc.zip, jars .

document.txt ( , eclipse IDE) .
CLIENT_ID, CLIENT_SECRET, REDIRECT_URI ( 1) .
.
:

, , .
Google .