how do i make .jar become executable in Xubuntu

347 Views Asked by At

I am Trying To Write a .sh file to ask file name, make file executable, then open file. I have tried to search but did not find a result to my question.

1

There are 1 best solutions below

2
On

Though the first sentence of question is ambiguous but what i conceived you want to run a .jar file. Simply java -jar yourfile.jar