dschanoeh / Kayak

Kayak is a CAN bus analysis tool based on SocketCAN
https://dschanoeh.github.io/Kayak/
GNU Lesser General Public License v3.0
313 stars 78 forks source link

Kayak fails to start ./../etc/kayak.conf: line 4: $'\r': command not found #28

Open bekopharm opened 5 years ago

bekopharm commented 5 years ago

Hi, this happens with Kayak-1.0-SNAPSHOT and openjdk version "1.8.0_201" on Fedora 29 on running ./kayak:

./../etc/kayak.conf: line 4: $'\r': command not found
./../etc/kayak.conf: line 9: $'\r': command not found
./../etc/kayak.conf: line 12: $'\r': command not found
Invalid maximum heap size: -Xmx256m
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit

This is similiar to the problem reported by @M4GNV5 in #25 and the solution provided by @follower applies as well:

file ./../etc/kayak.conf
./../etc/kayak.conf: ASCII text, with CRLF line terminators
dos2unix ./../etc/kayak.conf
dos2unix: converting file ./../etc/kayak.conf to Unix format...
file ./../etc/kayak.conf
./../etc/kayak.conf: ASCII text

Now ./kayak starts.