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

Asked by William McGreggor

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

English Edit question
Ubuntu bash Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
Revision history for this message
marcobra (Marco Braida) (marcobra) said :

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

Revision history for this message
codemaniac (arijit.dutta) said :

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.