dschanoeh / Kayak

Kayak is a CAN bus analysis tool based on SocketCAN

Home Page:https://dschanoeh.github.io/Kayak/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux binary not working

anjana-selvakumar opened this issue · comments

Hi,
I downloaded the binary file for Linux OS from kayak.2codeornot2code.com. The installation was successful but the application failed to launch. But the binary for a Windows machine works.
Also, I tried to clone all the files using git, but the build was not successful. It shows a failure in building the Netbeans module. I have double checked that the correct version of JDK and Maven is installed. Inspite of multiple attempts, the build was a failure.

Please help on how I can rectify this. I have installed socketcand and other tools on a Kali Linux machine.

Hi,
probably the java sdk is wrong or too new. Just specify java version with --jdkhome option when loading the binary: ./kayak --jdkhome /usr/lib/jvm/java-8-openjdk-amd64/
That worked for me at least.
Hope that helps.

commented

The developer for Kayak hasn't updated it to work with newer versions of Java (last commit was in April 2014). It looks like you must use Java 7 to run the application otherwise it won't start properly.

Unfortunately Java 7 reached end-of-life in mid 2015 and is no longer being updated so it is unlikely that you'll be able to find Java 7 on your distros package repositories but there are still ways to do it. This answer on stackoverflow explains how to install Java 7 on a modern version of Ubuntu: How do I install openjdk 7 on Ubuntu 16.04 or higher?

I manually installed openjdk-7-jre on my system and set it as my default Java runtime. After that I was able to start the Kayak application again.

Please see if the problems are solved with the latest updates.

I get the following output:

: not found ./../etc/kayak.conf: 
: not found ./../etc/kayak.conf: 
: not found: ./../etc/kayak.conf: 
Invalid maximum heap size: -Xmx256m
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
commented

Does the file ./etc/kayak.conf exist within the kayak root directory? It should have been included in the zip archive from the releases download.

I have just discovered that the bizarre error that #25 (comment) mentioned (and that I encountered on Mac and Ubuntu Linux) appears to be because etc/kayak.conf (via application/kayak.conf?) does not have Unix line-endings.

$ file etc/kayak.conf
etc/kayak.conf: ASCII English text, with CRLF line terminators

On Ubuntu I used dos2unix to convert the file and then was able to open Kayak successfully via:

./bin/kayak

Side note: Due to the line-endings the full error messages are overwritten unless you pipe into less e.g. ./bin/kayak | less.

dos2unix worked for me, thank you for this.

I have just discovered that the bizarre error that #25 (comment) mentioned (and that I encountered on Mac and Ubuntu Linux) appears to be because etc/kayak.conf (via application/kayak.conf?) does not have Unix line-endings.

$ file etc/kayak.conf
etc/kayak.conf: ASCII English text, with CRLF line terminators

On Ubuntu I used dos2unix to convert the file and then was able to open Kayak successfully via:

./bin/kayak

Side note: Due to the line-endings the full error messages are overwritten unless you pipe into less e.g. ./bin/kayak | less.