Solution - BASH: /HOME/JAVA/JDK1.8.0_221/BIN/JAVA: Insufficient permissions

Solution - BASH: /HOME/JAVA/JDK1.8.0_221/BIN/JAVA: Insufficient permissions

1) Enter the folder path where the jdk file is stored

I am here usr/local/jdk/

2) Enter the command chmod 777 jdk1.8.0_221/bin/java to modify the permissions

3) Enter java -version again and it will work


Summarize

The above is the solution that the editor introduced to you - BASH: /HOME/JAVA/JDK1.8.0_221/BIN/JAVA: Insufficient permissions. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Solve the problem of bash:/root/.bashrc:Permission denied

<<:  Solve the error of starting MongoDB: error while loading shared libraries: libstdc++.so.6:cannot open shared object file:

>>:  Detailed explanation of the life cycle of Angular components (Part 2)

Recommend

JS, CSS style reference writing

CSS: 1. <link type="text/css" href=&q...

Robots.txt detailed introduction

Robots.txt is a plain text file in which website ...

Common browser compatibility issues (summary)

Browser compatibility is nothing more than style ...

CentOS 6 uses Docker to deploy Zookeeper operation example

This article describes how to use docker to deplo...

25 Vue Tips You Must Know

Table of contents 1. Limit props to type lists 2....

WebWorker encapsulates JavaScript sandbox details

Table of contents 1. Scenario 2. Implement IJavaS...

Introduction to using MySQL commands to create, delete, and query indexes

MySQL database tables can create, view, rebuild a...

Getting Started Guide to MySQL Sharding

Preface Relational databases are more likely to b...

Sample code for CSS dynamic loading bar effect

Using the knowledge of CSS variables, I will dire...

Several mistakes that JavaScript beginners often make

Table of contents Preface Confusing undefined and...

js to achieve floor scrolling effect

This article uses jQuery to implement the sliding...