106 reputation
5
bio website
location Ahmedabad, India
age 27
visits member for 2 years
seen Jan 29 at 9:13

Oct
16
comment Difference between sh file.sh and file.sh
But then why it runs successfully when I do filename.sh only?
Oct
16
awarded  Commentator
Oct
16
comment Difference between sh file.sh and file.sh
When I do sh filename.sh or bash filename.sh, it throws me an error.
Oct
16
comment Difference between sh file.sh and file.sh
I asked you this as I already have gone through this link : askubuntu.com/questions/122428/how-to-run-sh-file
Oct
16
comment Difference between sh file.sh and file.sh
You mean giving permission for "Execute : Allow executing file as program" ?
Oct
16
comment Difference between sh file.sh and file.sh
let us continue this discussion in chat
Oct
16
comment Difference between sh file.sh and file.sh
output : filename.sh is hashed (path to filename.sh)
Oct
16
comment Difference between sh file.sh and file.sh
No it doesn't. Gives me the same exception.
Oct
16
comment Difference between sh file.sh and file.sh
I'm getting : /bin/bash
Oct
16
comment Difference between sh file.sh and file.sh
Exception mentioned in the question.
Oct
16
comment Difference between sh file.sh and file.sh
First line of my filename.sh is java -classpath .:jars
Oct
16
comment Difference between sh file.sh and file.sh
Do you mean the 1st line of my filename.sh?
Oct
16
awarded  Student
Oct
16
asked Difference between sh file.sh and file.sh
Oct
15
awarded  Editor
Oct
15
revised Exception in thread “main” java.lang.NoClassDefFoundError: Finger
spell & grammar correction
Oct
15
suggested suggested edit on Exception in thread “main” java.lang.NoClassDefFoundError: Finger
Sep
27
awarded  Supporter
Sep
27
awarded  Citizen Patrol