Problem scenario
You try to start Presto from a command line interface. But you get an error message with garbled output like this:
./presto: line 1: $'PK\003\004': command not found
./presto: line 2: $'ܢ\327H': command not found
./presto: line 3: syntax error near unexpected token `)'
./presto: line 3: ۢ▒H▒▒W▒META-INF/MANIFEST.MF▒P▒j!▒▒▒?▒8▒▒ɸK)'
Possible solution #1
You may have downloaded a .jar file that could be unpacked. You could try unpacking it. Here are four potential links to help you:
https://blog.packagecloud.io/eng/2017/03/15/extract-jar-command-line-linux/
https://stackoverflow.com/questions/1079693/how-do-you-extract-a-jar-in-a-unix-filesystem-with-a-single-command-and-specify (This above link is ideal if you are using Linux)
https://docs.oracle.com/javase/tutorial/deployment/jar/unpack.html
https://stackoverflow.com/questions/8453543/extracting-jar-file-with-command-line (We aren't sure if Presto can be used on Windows. This link above is for Windows users.)
Possible solution #2
Alternatively you could try downloading a different jar file. Ty using an "executable" jar like this one: https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/0.149/presto-cli-0.149-executable.jar
The word "executable" is important for which .jar file you download and use.