leolewis / openvisualtraceroute

Open source cross-platform (Windows/Linux/Mac) Java Visual Traceroute, packet sniffer and Whois.
http://visualtraceroute.net/
GNU Lesser General Public License v3.0
153 stars 30 forks source link

Fails on Linux With JRE 11 #6

Closed MuathAmer closed 2 years ago

MuathAmer commented 4 years ago

I had both jdk 8 and jdk 11 installed, but jdk 11 as default, the app failed to run giving me this error:

localuser:root being added to access control list
/usr/share/OpenVisualTraceRoute/ovtr_run_as_root.sh: 7: [: libpcap.so.0.8: unexpected operator
starting OpenVisualTraceroute...
02:59:37.168 [main] INFO  org.leo.traceroute.Main - Open Visual Traceroute 1.7.1 
02:59:37.177 [main] INFO  org.leo.traceroute.install.Env - Java run-time version: 11.0.6
02:59:37.177 [main] INFO  org.leo.traceroute.install.Env - NASA World Wind Java v2.1.0
02:59:37.177 [main] INFO  org.leo.traceroute.install.Env - 
02:59:37.187 [main] INFO  org.leo.traceroute.install.Env - OS:Linux / arch:amd64
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.leo.traceroute.install.Env (file:/usr/share/OpenVisualTraceRoute/org.leo.traceroute.jar) to field java.lang.ClassLoader.usr_paths
WARNING: Please consider reporting this to the maintainers of org.leo.traceroute.install.Env
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
02:59:37.192 [main] INFO  org.leo.traceroute.install.Env - Loading /usr/share/OpenVisualTraceRoute/native/linux/x64/libjnetpcap.so
02:59:37.193 [main] INFO  org.leo.traceroute.install.Env - Loading /usr/share/OpenVisualTraceRoute/native/linux/x64/libjpcap.so
Locale en_GB
Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!
localuser:root being removed from access control list

Changing the default alternatives from jre 11 to jre 8 allowed the app to run properly, the app should have automatically used jre 8.

artsra commented 4 years ago

Similar for MacOS. Only runs on jre 8.

g4z commented 3 years ago

i just wasted a bunch of time with this on Ubuntu. I assumed that the .deb package would just work. in fact you need to switch out your default Java 11 for Java 8 then switch it back after (if you needed Java 11 by default).

leolewis commented 2 years ago

Version 2.0.0 is now compatible with java 11~17