Thank you for your quick reply, The problem was that, in order to point the script to my java installation folder I opened the file with Atom and uncommented the line "INSTALL4J_JAVA_HOME_OVERRIDE=" and added my custom path. Upon saving the file Atom must have corrupted the binary part of the file. I solved the problem by running: export app_java_home=/path/to/where/the/folder/CONTAINING/the/bin/folder/of/java/ ./REW_linux_5_20_beta6.sh To avoid editing the file. The installer ran successfully and the program loaded. Then I tried restarting the machine and it still worked just fine.