I need to give a jar file the permission to be executable

Asked by William McGreggor on 2012-03-05

Hi guys I'm relatively new to linux and I would like to ask what the terminal command for allowing a jar file to be executable is. This jar file in on my desktop if that could help.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Last query:
2012-03-05
Last reply:
2012-05-29

From terminal go to the filedirectory with "cd" command example: cd Downloads

then type (change filename.jar with real file name you have)

chmod 755 filename.jar

or you can use nautilus select the file right click with mouse Properties → Permissions look for Allow execute permission

codemaniac (arijit.dutta) said : #3

chmod u+x jarfilename
would give the user/owner the execute permission to the script .

Can you help with this problem?

Provide an answer of your own, or ask William McGreggor for more information if necessary.

To post a message you must log in.