Kayak icon indicating copy to clipboard operation
Kayak copied to clipboard

Linux binary not working

Open anjana-selvakumar opened this issue 6 years ago • 7 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.

anjana-selvakumar avatar Jun 04 '18 18:06 anjana-selvakumar

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.

liebmt avatar Jun 24 '18 19:06 liebmt

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.

jackm avatar Sep 17 '18 19:09 jackm

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

dschanoeh avatar Nov 10 '18 16:11 dschanoeh

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.

M4GNV5 avatar Feb 06 '19 14:02 M4GNV5

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.

jackm avatar Feb 07 '19 15:02 jackm

I have just discovered that the bizarre error that https://github.com/dschanoeh/Kayak/issues/25#issuecomment-461045794 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.

follower avatar Feb 08 '19 09:02 follower

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.

dustindavis avatar Jun 11 '19 00:06 dustindavis