download JMS API on ec2 instance
Hi Team,
How to download JMS API on ec2 instance. I have follow https://solace.com/blog/integrating-solace-with-logstash/ example for the same way I tried to download the JMS API. But when I am trying to unzip it getting below message. please suggest.
unzip soljsm.zip
Archive: soljsm.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of soljsm.zip or
soljsm.zip.zip, and cannot find soljsm.zip.ZIP, period.
Comments
-
Hi @soniya ,
If I download it now, I'll get sol-jms-10.15.0.zip and I can unzip it using 'unzip' command in my macOS:
ari@Aris-MacBook-Pro Downloads % unzip sol-jms-10.15.0.zip And the file size should be 4.7MB.
Archive: sol-jms-10.15.0.zip
creating: sol-jms-10.15.0/
creating: sol-jms-10.15.0/lib/
...
I'm not familiar with the error message you shared, but could you double check the file name and size and/or try with different extractor tools if possible?
0 -
Thanks for your response.
I am trying to download it using below command and file name is soljms.zip.
wget https://products.solace.com/download/JMS_API -o soljms.zip.
0 -
I am getting same for sol-jms-10.15.0.zip file as well.
unzip sol-jms-10.15.0.zip
Archive: sol-jms-10.15.0.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of sol-jms-10.15.0.zip or
sol-jms-10.15.0.zip.zip, and cannot find sol-jms-10.15.0.zip.ZIP, period.
0 -
Hi @soniya,
I'm not sure why
wget
isn't working, but I reproduced the same issue. It works if I docurl -XGET -s https://products.solace.com/download/JMS_API -o soljms.zip
. Will that work for you?MacBook-Pro.localdomain:/tmp$ curl -XGET -s https://products.solace.com/download/JMS_API -o soljms.zip MacBook-Pro.localdomain:/tmp$ unzip soljms.zip Archive: soljms.zip creating: sol-jms-10.15.0/ creating: sol-jms-10.15.0/lib/ creating: sol-jms-10.15.0/samples/ creating: sol-jms-10.15.0/samples/bin/ creating: sol-jms-10.15.0/docs/ creating: sol-jms-10.15.0/docs/api/ .....
1 -
Hi @soniya,
Actually, thanks to @amackenzie, he read the docs (I skip that part 😂) and figured out you need to use
-O
and not-o
withwget
Try this
wget https://products.solace.com/download/JMS_API -O solJMS.zip
Difference from `wget --help`
-O, --output-document=FILE write documents to FILE -o, --output-file=FILE log messages to FILE
0 -
I am sure there is a compliment in there somewhere @marc ;)
Happy to help!
1