majorkalina / google-docs-upload

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

Error while executing the jar command #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. java -jar google-docs-upload.jar
2.
3.

What is the expected output? What do you see instead?
Need uploading documents

What version of the product are you using? On what operating system?
Windows XP

Please provide any additional information below.
===
D:\Net Downloads>java google-docs-upload-1.3.1.jar
Exception in thread "main" java.lang.NoClassDefFoundError: google-docs-
upload-1/3/1/jar
Caused by: java.lang.ClassNotFoundException: google-docs-upload-1.3.1.jar
        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)
Could not find the main class: google-docs-upload-1.3.1.jar.  Program will 
exit.
===

Original issue reported on code.google.com by bsak...@gmail.com on 23 Feb 2010 at 9:12

GoogleCodeExporter commented 9 years ago
You forgot to put "-jar" after "java". To execute the program, you need to type 
the 
following:

java -jar google-docs-upload-1.3.1.jar

Original comment by anton.be...@gmail.com on 1 Mar 2010 at 3:31

GoogleCodeExporter commented 9 years ago
Hi,
 I ran like this:

D:\Tst>java -jar D:\gdu\gdu.jar -u bsakula

Google Docs Upload 1.3.1
Using this tool, you can batch upload your documents to a Google Docs account 
preserving folder structure.
Supported file formats are: csv, doc, docx, html, htm, ods, odt, pdf, ppt, pps, 
rtf, 
sxw, tsv, tab, txt, xls, xlsx.
Type 'help' for a list of parameters.

Password:
Authentification error

I am able to check my gmail and all other things using the same password.
I am getting this.
Please suggest.

Original comment by bsak...@gmail.com on 2 Mar 2010 at 4:17

GoogleCodeExporter commented 9 years ago
Hi,

The first parameter should the path to a folder to upload, for example:

java -jar D:\gdu\gdu.jar D:\documents -u bsakula

This should work if you specify right login and password.

Original comment by anton.be...@gmail.com on 2 Mar 2010 at 4:27

GoogleCodeExporter commented 9 years ago
I ran like that only please see the below thing: Please let me know where I am 
doing 
wrong. The -rf I am giving the folder Test in google-docs
====
C:\Documents and Settings\bhargava_Akula>java -jar D:\gdu\gdu.jar D:\Tst -u 
bsakula -
rf /Test

Google Docs Upload 1.3.1
Using this tool, you can batch upload your documents to a Google Docs account 
preserving folder structure.
Supported file formats are: csv, doc, docx, html, htm, ods, odt, pdf, ppt, pps, 
rtf, 
sxw, tsv, tab, txt, xls, xlsx.
Type 'help' for a list of parameters.

Password:

Uploading the folder D:\Tst to /Test

Files uploaded: 0

C:\Documents and Settings\bhargava_Akula>D:

D:\>cd tst

D:\Tst>dir
 Volume in drive D is Data
 Volume Serial Number is 50F1-5717

 Directory of D:\Tst

03/01/2010  10:05 PM    <DIR>          .
03/01/2010  10:05 PM    <DIR>          ..
03/01/2010  10:05 PM    <DIR>          T1
03/01/2010  10:05 PM    <DIR>          T2
03/01/2010  10:06 PM    <DIR>          T3
               0 File(s)              0 bytes
               5 Dir(s)  18,338,701,312 bytes free
====

Original comment by bsak...@gmail.com on 2 Mar 2010 at 4:31

GoogleCodeExporter commented 9 years ago
Its working you can close the issue.

Original comment by bsak...@gmail.com on 2 Mar 2010 at 4:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
What if you try this:

java -jar C:\gdu\google-docs-upload-1.3.2.jar E:\work\test

And then just enter your login and password when requested?

Original comment by anton.be...@gmail.com on 10 Mar 2010 at 10:16