Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google drive Code is compiled but not running #900

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 2 comments
Open

Google drive Code is compiled but not running #900

GoogleCodeExporter opened this issue Mar 15, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link
Collaborator

Version of google-api-java-client (e.g. 1.15.0-rc)?
1.19.0

Java environment (e.g. Java 6, Android 2.3, App Engine)?
java version "1.7.0_51"

Describe the problem.
I am new to google API. I have written a code to upload a file on google drive 
using service account. I have generated the API-KEY for my account.
I have added all jars to classpath. I am able to compile the code without any 
error. But upon running the code, I get no class def found error.

Exception in thread "main" java.lang.NoClassDefFoundError: 
com/google/appengine/api/appidentity/AppIdentityServiceFactory
        at com.google.api.client.googleapis.extensions.appengine.auth.oauth2.AppIdentityCredential.<init>(AppIdentityCredential.java:86)
        at com.google.api.client.googleapis.extensions.appengine.auth.oauth2.AppIdentityCredential$Builder.build(AppIdentityCredential.java:178)
        at DriveCommandLine.main(DriveCommandLine.java:37)
Caused by: java.lang.ClassNotFoundException: 
com.google.appengine.api.appidentity.AppIdentityServiceFactory
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 3 more


Please help. I have attached my code into this case. I have removed the API-KEY 
string.

How would you expect it to be fixed?
Either some jar file is missing or some other issue is there. If code is 
compiling properly then it should also run without any class error.

Original issue reported on code.google.com by adityaz...@gmail.com on 31 Aug 2014 at 4:27

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant