Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Linux binary not working #25

Open
anjana-selvakumar opened this issue Jun 4, 2018 · 7 comments
Open

Linux binary not working #25

anjana-selvakumar opened this issue Jun 4, 2018 · 7 comments

Comments

@anjana-selvakumar
Copy link

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.

@liebmt
Copy link

liebmt commented Jun 24, 2018

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.

@jackm
Copy link

jackm commented Sep 17, 2018

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.

@dschanoeh
Copy link
Owner

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

@M4GNV5
Copy link

M4GNV5 commented Feb 6, 2019

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.

@jackm
Copy link

jackm commented Feb 7, 2019

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.

@follower
Copy link

follower commented Feb 8, 2019

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants