Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Paul Newsgroups: alt.os.linux.mint Subject: Re: Java problem with Angry IP scanner Date: Wed, 8 Feb 2023 22:58:46 -0500 Organization: A noiseless patient Spider Lines: 43 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 9 Feb 2023 03:58:46 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="4d4760052404e507ba8a7374de84be4b"; logging-data="589706"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184Mswi7YM8Vxs0b3Mc5WXIWH9qtyIomPg=" User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802) Cancel-Lock: sha1:Wlil7/DT1ehvD+C8jqzWDWxGqC0= Content-Language: en-US In-Reply-To: Bytes: 2627 On 2/8/2023 11:40 AM, Rob H wrote: > I have been using Angry IP scanner for a number of years with any problems. > Very recently I upgraded my Linux Mint to 21.1, and now when I try to run the said program et a popup message saying I need to have Java/OpenJDK11+ to run the program. > > My Java version: > rob@rob-Z97:~$ java -version > openjdk version "1.8.0_352" > OpenJDK Runtime Environment (build 1.8.0_352-8u352-ga-1~22.04-b08) > OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode) > > If I have OpenJDK Build 25, surely the said program should run, butb it doesn't https://angryip.org/download/#linux Running Make sure you have at least Java 11 or OpenJDK installed - check your distribution. Last version with Java 8 support was 3.7.6 <=== AngryIP version ******* Usually, stuff like this is protected with wrappers. #!/bin/sh java=$JAVA_HOME/bin/java [ ! -e $java ] && java=java $java --add-opens java.base/java.net=ALL-UNNAMED -jar /usr/lib*/ipscan/ipscan*.jar "$@" [ $? != 0 ] && notify-send "You need Java/OpenJDK 11+ to run ipscan" There are probably several situations where that error message comes back. For example, let us say that $JAVA_HOME does not point to the correct install point. That might break the thing. It could be, you do have a correct Java installed, but nothing corrected the $JAVA_HOME. It's not using your PATH variable to sniff for the thing. It is cheating. And the script above, is about the only barrier to success in there :-) It's got "Guilty yer Honour" written all over it. Paul