It seeems that the java binary does not have execution permission. Executing chmod a+x /usr/bin/java/jre-8u171-i586/bin/java might solve the issue.

But there is something wrong with how you installed java. I would try to install it using the package manager.

Answer from Gonzalo Matheu on Stack Overflow
🌐
Ask Ubuntu
askubuntu.com › questions › 1383730 › permission-denied-while-running-a-jar-file
java - Permission denied while running a .jar file - Ask Ubuntu
December 25, 2021 - I have also checkmarked Allow executing ... the wrong way. To resolve the permission denied error message install openjdk-8-jre from the default Ubuntu repositories....
Discussions

linux - How to modify the permission of jar file exactly same as other machine jar file? - Unix & Linux Stack Exchange
I have two machines, In my machineA I have a jar file with these permissions - -rwxr-xr-x 1 cronus app 16758150 2013-03-19 13:35 exhibitor-1.5.1-jar-with-dependencies.jar In my another machineB, ... More on unix.stackexchange.com
🌐 unix.stackexchange.com
Permission Denied After Trying To Open .jar File
-bash: /Users/[myName]/Downloads/paper-1.16.4-404.jar: Permission denied More on discussions.apple.com
🌐 discussions.apple.com
January 11, 2021
How to open the jar from cmd without getting access is ...
🌐 answers.microsoft.com
java - Can run jar from command line but not from shell script + permission denied - Stack Overflow
why can't I run a jar from a shellscript when double clicking it? Failed to execute child process "~/start.sh" (Permission denied) #!/bin/bash java -jar test.jar I'm running on Arch linux x64 More on stackoverflow.com
🌐 stackoverflow.com
May 22, 2017
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
Cannot execute jars as user / Newbie Corner / Arch Linux Forums
October 27, 2017 - [waterquarks@arch ~]$ ls -l ... OptiFine-1.12.2_HD_U_C6.jar [waterquarks@arch ~]$ ... Yep, permission error. That file is owned by root, so only the root user (or your user using sudo) can use it....
🌐
Stack Exchange
unix.stackexchange.com › questions › 105804 › how-to-modify-the-permission-of-jar-file-exactly-same-as-other-machine-jar-file
linux - How to modify the permission of jar file exactly same as other machine jar file? - Unix & Linux Stack Exchange
And apart from this, can anybody explain me how does this permission work and what does it mean? ... Thanks Jordan for the link, I am able to understand its meaning now.. ... Using the chmod command. The question you have in the body of the post is a duplicate, but I guess the question in the title is not. ... I updated it to make that more clear. ... Sure, but adding execute perms on a jar isn't going to do much since jar files are not executed.
🌐
Apple Community
discussions.apple.com › thread › 252299609
Permission Denied After Trying To Open .jar File
January 11, 2021 - -bash: /Users/[myName]/Downloads/paper-1.16.4-404.jar: Permission denied
🌐
Contrastsecurity
support.contrastsecurity.com › hc › en-us › articles › 360043093212--Access-Denied-Permissions-Issues
"Access Denied" Permissions Issues – Contrast Security Support Portal
August 16, 2023 - // The file URL following the codeBase keyword must be the absolute path // to the Contrast agent jar file grant codeBase "file:/opt/contrast/contrast.jar" { permission java.security.AllPermission; };
Find elsewhere
🌐
Coderanch
coderanch.com › t › 612598 › java › running-jar-file-unix-works
issue while running a jar file in unix, but the same works fine in Windows [Solved] (Java in General forum at Coderanch)
May 29, 2013 - 2)When running in Unix: /tmp/test/lib/MyJar.jar has all the dependent jars in /tmp/test/lib/* So i run the program using the command : /tmp/test > java -cp /tmp/test/lib/*;/tmp/test/MyJar.jar com.abc.MyMain I get this error: $ java -cp /tmp/test/lib/*;/tmp/test/MyJar.jar com.abc.MyMain Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/test/lib/commons-logging-1/1/1/jar Caused by: java.lang.ClassNotFoundException: .tmp.test.lib.commons-logging-1.1.1.jar at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.n
🌐
Stack Overflow
stackoverflow.com › questions › 58332808 › adding-jar-file-to-buildpath-and-got-permission-denied-error
java - Adding jar file to buildpath and got permission denied error - Stack Overflow
October 11, 2019 - just to test I would do this first: chmod 755 demo.jar ... on terminal navigate to the directory and just run ls -ltr the first column gives you permissions on the file
🌐
Oracle Community
community.oracle.com › tech › developers › discussion › 2073651 › permission-denied-in-creating-jar-file-in-java
Permission denied in creating .jar file in java - Oracle Forums
April 4, 2008 - I want to create a jar file that serves as a library in linux. below is what I did: After compile rb.java with javac succefully, try to create rb.jar under root directory. %>jar cvf /rb.jar /home...
🌐
GitHub
github.com › skylot › jadx › issues › 1391
[core] JAR file does not load properly - permissions error? · Issue #1391 · skylot/jadx
February 25, 2022 - Ignore classes/directories for which it gets a permission denied error, but import the rest of the files · Ignore permissions when extracting the jar file/fix them manually?
Author   skylot
🌐
Oracle Communities
community.oracle.com › message › 8808077
Permission denied in creating .jar file in java | Oracle Community
does this work: %>sudo touch /rb.jar %>sudo chmod 777 /rb.jar %>jar cvf /rb.jar /home/jiane/rb/*.class
🌐
Stack Overflow
stackoverflow.com › questions › 57941749 › permission-denied-trying-to-execute-a-jar-file-packaged-by-maven-with-included-d
java - Permission denied trying to execute a jar file packaged by Maven with included dependencies on a user account - Stack Overflow
September 15, 2019 - I set up pom.xml to build a jar file and include the necessary dependencies, and packaged it up. This is all happening on Ubuntu 19.04, by the way, and also it's my first project using Maven. Testing the resulting file out in my own account and home folder, it seems to work fine (no matter where I put it)... However, when I copy it to the user account I get this error: java.io.FileNotFoundException: /tmp/jSerialComm/1568526835050-libjSerialComm.so (Permission denied) at java.base/java.io.FileOutputStream.open0(Native Method) at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)