How to install and configure jdk for Ubuntu
This article mainly shows you how to install and configure jdk in Ubuntu. The content is simple and easy to understand. The organization is clear. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn how to install and configure jdk in Ubuntu.
First download the version of Ubuntu jdk for your platform. Click the link below to download it directly: [url=http://developers.sundownload/.com.cn/java_se.html]developers.sun.com.cn/download/java_se.html[/url]
>> First switch to administrator account sudo su
Then go to the installation directory placed by Ubuntu jdk and directly execute:
sh ./ jdk-6u13-linux-i586.bin
Enter all the way down, there will be a lot of english subtitles, until the screen shows that you need to enter yes/no, this will definitely understand what it means [img]https://cache.yisu.com/upload/information/20210521/367/443355.gif[/img].
The Ubuntu jdk1.6.0_13 directory will appear. Congratulations on completing the installation of Ubuntu jdk.[img]https://cache.yisu.com/upload/information/20210521/367/443357.gif[/img] Then configure the environment variables.
[color=#0000ff][b]JDK[/b][/color] environment variable configuration, there are two files will be involved: online search netizens post, a variety of too many introductions.
One is: /etc/environment >> is the system boot load index.
/etc/profile >> is an environment variable.
[color=#0000ff][b]JDK[/b][/color] environment variables are configured in the following way, only modify a file, the configuration is OK, and the verification test passes [img]https://cache.yisu.com/upload/information/20210521/367/443359.gif[/img].
After setting PATH, JAVA_HOME, CLASSPATH environment variables, use gedit editor to modify profile file.# gedit /etc/profile Add the following statement to the end of the pop-up profile file before umask 022
export JAVA_HOME=/home/ubtools/jdk1.6.0_13
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOMR/bin
The above is all the content of "Ubuntu how to install and configure jdk" this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!