java -jar ipscan-any-3.8.2.jar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/azib/ipscan/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
it installed and created a place in the menu, but i had to run it in a terminal code below:
ipscan
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/azib/ipscan/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
Mabox (Arch/Manjaro) has a wondrous package repository and almost everything you may need is already there. Try to always install/build a program from there first and manually if you have no choice.
Reading your case is not clear if you mixed the AUR package and the JAR/files from Angry’s page. If that’s the case uninstall/undo everything you did and reinstall from AUR like napcok said. Don’t forget to include the Java runtime at the end:
sudo pacman -S jre8-openjdk
You can resort to NMAP + Zenmap as alternatives too.
ipscan
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/azib/ipscan/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
ok so i went to my acer witch i haven’t added or changed . and this is the code:
mabox-aspire7720z ~ $ yay -S ipscan
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] ipscan-3.8.2-1
:: (1/1) Downloaded PKGBUILD: ipscan
1 ipscan (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> I
:: (1/1) Parsing SRCINFO: ipscan
==> Making package: ipscan 3.8.2-1 (Wed 05 Oct 2022 04:03:18 PM EDT)
==> Retrieving sources...
-> Found ipscan.png
-> Found ipscan
-> Found ipscan.desktop
-> Downloading ipscan-linux64-3.8.2.jar...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1768k 100 1768k 0 0 1141k 0 0:00:01 0:00:01 --:--:-- 2079k
==> Validating source files with md5sums...
ipscan.png ... Passed
ipscan ... Passed
ipscan.desktop ... Passed
==> Validating source_x86_64 files with md5sums...
ipscan-linux64-3.8.2.jar ... Passed
==> Making package: ipscan 3.8.2-1 (Wed 05 Oct 2022 04:03:24 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found ipscan.png
-> Found ipscan
-> Found ipscan.desktop
-> Found ipscan-linux64-3.8.2.jar
==> Validating source files with md5sums...
ipscan.png ... Passed
ipscan ... Passed
ipscan.desktop ... Passed
==> Validating source_x86_64 files with md5sums...
ipscan-linux64-3.8.2.jar ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Sources are ready.
==> Making package: ipscan 3.8.2-1 (Wed 05 Oct 2022 04:03:33 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ipscan"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: ipscan 3.8.2-1 (Wed 05 Oct 2022 04:03:40 PM EDT)
==> Cleaning up...
[sudo] password for klein:
loading packages...
resolving dependencies...
looking for conflicting packages...
Package (1) New Version Net Change
ipscan 3.8.2-1 1.73 MiB
Total Installed Size: 1.73 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [----------------------] 100%
(1/1) checking package integrity [----------------------] 100%
(1/1) loading package files [----------------------] 100%
(1/1) checking for file conflicts [----------------------] 100%
(1/1) checking available disk space [----------------------] 100%
:: Processing package changes...
(1/1) installing ipscan [----------------------] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the desktop file MIME type cache...
it created the menu item but didn’t work, so i tried the terminal:
ipscan
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/azib/ipscan/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
“has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0.”
Meaning that ipscan was compiled under Java 11 (55.0) but your current Runtime can only handle up to Java 8 (52.0). Please include the results from:
sudo pacman -S jdk-openjdk
[sudo] password for klein:
resolving dependencies...
looking for conflicting packages...
Package (3) New Version Net Change Download Size
extra/jre-openjdk 18.0.2.1.u0-1 0.49 MiB 0.18 MiB
extra/jre-openjdk-headless 18.0.2.1.u0-1 168.35 MiB 37.16 MiB
extra/jdk-openjdk 18.0.2.1.u0-1 89.58 MiB 76.71 MiB
Total Download Size: 114.05 MiB
Total Installed Size: 258.42 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
jre-openjdk-18.0... 183.4 KiB 238 KiB/s 00:01 [----------------------] 100%
jre-openjdk-headless-18.0.2.1.u0-... 37.2 MiB 840 KiB/s 00:45 [-------------------------------------] 100%
jdk-openjdk-18.0.2.1.u0-1-x86_64 76.7 MiB 1267 KiB/s 01:02 [-------------------------------------] 100%
Total (3/3) 114.1 MiB 1878 KiB/s 01:02 [-------------------------------------] 100%
(3/3) checking keys in keyring [-------------------------------------] 100%
(3/3) checking package integrity [-------------------------------------] 100%
(3/3) loading package files [-------------------------------------] 100%
(3/3) checking for file conflicts [-------------------------------------] 100%
(3/3) checking available disk space [-------------------------------------] 100%
:: Processing package changes...
(1/3) installing jre-openjdk-headless [-------------------------------------] 100%
Default Java environment is already set to 'java-8-openjdk/jre'
See 'archlinux-java help' to change it
Optional dependencies for jre-openjdk-headless
java-rhino: for some JavaScript support
(2/3) installing jre-openjdk [-------------------------------------] 100%
Default Java environment is already set to 'java-8-openjdk/jre'
See 'archlinux-java help' to change it
when you use a non-reparenting window manager,
set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh
Optional dependencies for jre-openjdk
alsa-lib: for basic sound support [installed]
gtk2: for the Gtk+ 2 look and feel - desktop usage [installed]
gtk3: for the Gtk+ 3 look and feel - desktop usage [installed]
(3/3) installing jdk-openjdk [-------------------------------------] 100%
Default Java environment is already set to 'java-8-openjdk/jre'
See 'archlinux-java help' to change it
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
klein@mabox-dv9700 ~ $ java -version
openjdk version "1.8.0_345"
OpenJDK Runtime Environment (build 1.8.0_345-b01)
OpenJDK 64-Bit Server VM (build 25.345-b01, mixed mode)
this is interesting it was at the end of the install
Default Java environment is already set to 'java-8-openjdk/jre'
See 'archlinux-java help' to change it
You are almost there, probably with two versions of Java installed. You must set the most recent as default, look here please (I have no Java in my computer )