JDK installation and configuration tutorial in Linux
JDK can be downloaded on the official website or from a file server.
1. Create a Java folder in the usr Directory:
2. Enter the newly created Java folder and download the JDK:
For example:
3. Unzip the JDK and see a jdk1.0 file in the / usr / Java directory 8.0 Directory:
4. Delete the original compressed package:
5. Set JDK path and environment variable:
Click I to edit
Add at the end of the document:
click
Exit and save.
To view the edits you just made:
To make JDK available to all users, you can:
In the new Java SH enter the following:
Save, exit, and then give it to Java SH assign permissions: Chmod 755 / etc / profile d/java. sh
6. Restart the machine or execute the command:
7. View java version:
As shown in the figure, you can see that the JDK has been installed successfully!
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.