YoshiEnari / google-docs-upload

Automatically exported from code.google.com/p/google-docs-upload
0 stars 0 forks source link

does this work on a mac? #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I tried downloading and using the newest, and then some older version of
this for a mac. When I execute;

java -jar google-docs-upload.jar /googledocs -- recursive

I get;

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)

I looked to see if it was the java thingy, and went here;

To run the application you need Java 1.6 (JRE 6) or greater installed:
http://java.sun.com/javase/6/  

But when I looked to download the javase 6 i did not see any option for a mac.

I am simply trying to upload a single doc from my local mac machine to
google docs each hour. 

Cheers! Rich Griese

Original issue reported on code.google.com by RichGri...@gmail.com on 27 Mar 2010 at 10:00

GoogleCodeExporter commented 8 years ago
Hey Guys... ok, i found a way to change my command line preferences to use java 
6 and
now can run the app. Here is the question I have. I am looking replace a google 
doc
on their server with a newer copy, but....

1) keep the same URL of the google doc and 
2) keep the same allow people to view permission.

In effect I am using a google doc that I link to via a A HREF from my home 
page. It
seems that when I use this app to replace a doc, it create a new url and 
changes the
permission to not shared. This makes the HREF on my home page, not point to the
updated doc. 

Am I missing something, or is this not possible?

I am using the command;

java -jar google-docs-upload.jar /googledocs --username mygooglename --password
mygooglepassword --replace-all

Original comment by RichGri...@gmail.com on 27 Mar 2010 at 10:52

GoogleCodeExporter commented 8 years ago

Original comment by anton.be...@gmail.com on 22 Dec 2010 at 2:47