andresoviedo / google-drive-ftp-adapter

Google Drive FTP Adapter to connect to google drive through the FTP protocol
GNU Lesser General Public License v3.0
395 stars 93 forks source link

error when load jar #34

Open xxx31fr opened 5 years ago

xxx31fr commented 5 years ago

Hello, I get this issue... Could not find or load main class google-drive-ftp-adapter-jar-with-dependencies.jar and java -jar google-drive-ftp-adapter-jar-with-dependencies.jar Error: Invalid or corrupt jarfile google-drive-ftp-adapter-jar-with-dependencies.jar the size of the downloaded file is 59KB. is it good? Thanks for your help

andresoviedo commented 5 years ago

Hey. Did you click on download button or did you right clicked "download as"?

wagesj45 commented 5 years ago

I actually got this same error message when trying to set up a docker image to run the jar file. I used wget to download the jar file linked from the README.md. The docker file is as follows.

FROM java:8

WORKDIR /

ADD google-drive-ftp-adapter-jar-with-dependencies.jar google-drive-ftp-adapter-jar-with-dependencies.jar

EXPOSE 1821

CMD java -jar google-drive-ftp-adapter-jar-with-dependencies.jar

This results in the following:

username@machinename:~/google-drive-ftp-adapter$ sudo docker run gdfa
Error: Invalid or corrupt jarfile google-drive-ftp-adapter-jar-with-dependencies.jar
wagesj45 commented 5 years ago

Upon review, it looks like the right link is https://github.com/andresoviedo/google-drive-ftp-adapter/raw/master/build/google-drive-ftp-adapter-jar-with-dependencies.jar, rather than what is linked on the README.md.

andresoviedo commented 5 years ago

Yes. Thanks. Actually there is 2 links: