I have simple console app in java.
I have compiled it, download jre for WIN, LINUX, MAC OS.
I have wrote simple .bat for WIN and .sh for Linux
I try to use .sh for run in MAC OS.
It works in console, but not on double clicking.
I have tryed to change permisions, make executable, change ext to .command - no result.
In terminal ./run.command и ./ru.sh - its ok.
In ./run.command и ./ru.sh I have:
../jre/jre1.8.0_152.jre/Contents/Home/bin/java -cp .:commons-validator-1.4.0.jar:jsoup-1.11.2.jar Main

Doulbe click on .sh и .command it gives me errors

Last login: Wed Jan 17 10:26:27 on ttys001
Mac-pc:~ pc$ /Users/pc/Desktop/urw/run.command ; exit;
Error: Could not find or load main class .Main
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.




Last login: Wed Jan 17 17:36:09 on ttys000
Mac-pc:~ pc$ /Users/pc/Desktop/urw/run.sh ; exit;
/Users/pc/Desktop/urw/run.sh: line 1: ../jre/jre1.8.0_152.jre/Contents/Home/bin/java: No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.


Thanks for any opinion on this matter.