google-drive-ftp-adapter icon indicating copy to clipboard operation
google-drive-ftp-adapter copied to clipboard

error when load jar

Open xxx31fr opened this issue 6 years ago • 4 comments

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

xxx31fr avatar Nov 13 '18 12:11 xxx31fr

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

andresoviedo avatar Nov 13 '18 13:11 andresoviedo

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 avatar Nov 29 '18 06:11 wagesj45

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.

wagesj45 avatar Nov 29 '18 06:11 wagesj45

Yes. Thanks. Actually there is 2 links:

  • the "web" link
  • the raw link I Will update readme with raw link. maybe thats better

andresoviedo avatar Nov 29 '18 08:11 andresoviedo