JDK configuration in Linux under centOS
Download jdk and decompress it under / usr/local/src/jdk
Command:
After decompression:
Second, edit with vim. If it is a minimum installed Linux, you need to install the vim command (yum install vim*).
Command: vim / etc/profile
Refresh the configuration file
Command: source / etc/profile
4. Test whether jdk is configured successfully
Command: java-version
Command: javac
5. Installation completed