Due to the slow speed at home, I copied JDK, eclipse, and Android sdks from the company to install them. As a result, JDK 1.7 was just installed,
User @ Yan :~ $ Java-version
Bash:/home/user/Java/jdk1.7.0/bin/Java: insufficient Permissions
What should we do if such a problem occurs? Ask Google, saying that we only need to upgrade Java to execute permissions, so we have the following processing result:
User @ Yan :~ $ Chmod + x/home/user/Java/jdk1.7.0/bin/Java
User @ Yan :~ $ Java-version
Java version "1.7.0"
Java (TM) se Runtime Environment (build 1.8.0)
Java hotspot (TM) server VM (build)
User @ Yan :~ $ Javac
Bash:/home/user/Java/jdk1.7.0/bin/javac: insufficient Permissions
If the above problem occurs again, you can handle it again.
User @ yanshi :~ $ Chmod + x/home/user/Java/jdk1.7.0/bin/javac
User @ yanshi :~ $ Javac
Usage: javac <Options> <source files>
This is quite simple. It's done, oh