angryip / ipscan

Angry IP Scanner - fast and friendly network scanner
angryip.org
GNU General Public License v2.0
4.13k stars 718 forks source link

Cannot run after Building #110

Open Combat1 opened 7 years ago

Combat1 commented 7 years ago

I know this may be an old issue solved,But I cannot find an answer. After building using ant or make & then trying to run using " java -jar",I get the error- "Error: Invalid or corrupt jarfile angryip-ipscan-4380a7c/dist/ipscan-linux64-3.5.2.jar" & even after installing the .deb file gives "Error: Invalid or corrupt jarfile /usr/lib/ipscan/ipscan-linux64-3.5.2.jar" I have both openjdk8 & jre8 installed. When I run the normal releases that are available they work fine but not what I build from source. I also do not see any errors after building only when trying to run & it is marked execuatable.

angryziber commented 7 years ago

I have never seen such an error. Might be a problem with your Ant installation/version. Look inside of the jar file, is it a valid zip archive? Try to run unzip on it, does it work?

Combat1 commented 7 years ago

Could you let me know what I could be doing wrong then? As I thought it was supposed to be as simple as this, I download the .tar.gz & extract it to a folder which I cd to,While in the folder I type the letters ant linux64, After pressing "enter" it shows that it has built both a .jar & .deb into the dist folder, I do not see any errors in compilation & when I then either install using .deb or run .jar that it gives the error I explained in first post. In regards to the jar file being valid -I open it using an archive manager like ARK & it is full of files Thanks

angryziber commented 6 years ago

It works out of the box for most people. The only reason for this error I could image is that your default 'jar' command that is used for creating the jar archive is not the one from Java. Maybe some other archiver. Look into it.