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

error when load jar #34

Open
xxx31fr opened this issue Nov 13, 2018 · 4 comments
Open

error when load jar #34

xxx31fr opened this issue Nov 13, 2018 · 4 comments
Labels

Comments

@xxx31fr
Copy link

xxx31fr commented Nov 13, 2018

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
Copy link
Owner

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

@wagesj45
Copy link

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
Copy link

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
Copy link
Owner

Yes. Thanks. Actually there is 2 links:

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

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

No branches or pull requests

3 participants