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

Doesn't start on Mac (but double click on JAR works!) #8

Closed ogerardin closed 2 years ago

ogerardin commented 3 years ago

MacOS Catalina 10.15.6. Double-clicking on the app does nothing and generates the following system log entries:

Oct  9 17:43:57 Oliviers-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.java.5772): Failed to bootstrap path: path = /Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home/bin/java, error = 2: No such file or directory
Oct  9 17:43:59 Oliviers-MacBook-Pro com.apple.xpc.launchd[1] (org.leo.traceroute.Main.72724[5772]): Service exited with abnormal code: 1

However if I "show package contents" and double-click on `Contents/Resources/Java/org.leo.traceroute.jar, it does start the application!

oaxjogi commented 3 years ago

Have created a pull request on this repository and hopefully the original author will integrate it :-)

oaxjogi commented 3 years ago

fixed :)

ogerardin commented 3 years ago

fixed :)

Is there a release that includes the fix? I couldn't find one. I tried to build myself but it doesn't finish the build because of a change in an OS command (hdiutil I believe)

robertoschwald commented 2 years ago

I think it is a problem of the universalJavaApplicationStub which only supports Apple or Oracle Java. I replaced it with the universalJavaApplicationStub from https://github.com/tofi86/universalJavaApplicationStub and application now starts on Big Sur using Zulu / OpenJDK. It also offers an option to install a missing JDK.

mnbf9rca commented 2 years ago

Is there a release with this in it? Sourceforge only contains release 1.7.1 dated 2019 - well before Big Sur image

leolewis commented 2 years ago

Thanks everyone, I recently released a new MacOS package with the fix, it is available at https://sourceforge.net/projects/openvisualtrace/files/2.0.0/ please git it a try and let me know if it helps.