Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 77370  / 1 Year ago, sun, november 13, 2022, 6:37:54

I'm trying to run a jar application under Ubuntu, so I installed OpenJDK Java 7 Runtime, but when I open this application I got this message :




The file '/home/aimad/Programms/jMerise/JMerise.jar' is not marked as
executable. If this was downloaded or copied from an untrusted
source, it may be dangerous to run. For more details, read about the
executable bit.



More From » openjdk

 Answers
6

You can always run a jar file by doing java -jar JMerise.jar.



However, to make the jar file itself executable, you need to set the executable bit, as the message hints. chmod +x /home/aimad/Programms/jMerise/JMerise.jar will accomplish this.



After that you can do ./JMerise.jar to run it.



man chmod will provide you with information about how chmod works.



Also see: https://wiki.ubuntu.com/Security/ExecutableBit


[#32126] Monday, November 14, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wherejuic

Total Points: 53
Total Questions: 123
Total Answers: 117

Location: Zambia
Member since Mon, Jan 23, 2023
1 Year ago
wherejuic questions
Thu, Aug 19, 21, 18:07, 3 Years ago
Wed, May 12, 21, 03:23, 3 Years ago
Sat, Nov 13, 21, 05:27, 3 Years ago
Mon, Sep 5, 22, 17:36, 2 Years ago
;