Install JDK and tomcat in deepin

Source: Internet
Author: User

Installing Java on deepin is a mess. It's hard to figure it out and record it.

1. Download JDK

First of all, we need to know that the JDK downloaded using commands similar to sudo is an open JDK and an open source JDK. However, the JDK we use in school is from Oracle. So we need to go to the official website. You can skip the steps and use the command line to download them. After all, the open JDK and JDK are different. The former can be regarded as the castrated version of the latter,

Specific differences self Baidu:

For specific steps, see section 78956497. Some people write quite well, that is, the configuration file path below may have less Java directories, so I won't duplicate them.

2. Configuration File

You may follow the above tutorial to clear the customs directly, but I am not so lucky. Execute source/etc/profile and keep saying that the path is a directory. I don't know why, the Java command cannot be found after the Java-version is added. After searching for a long time, I did not find any problem. I simply gave up the configuration method.

Https:// MoD = viewthread & tid = 136610. I configured it in this way, but it succeeded. The difference is that you changed the profile file and I changed the environment file. Of course, if you can use profile, you can change the profile first.

3. tomcat installation

There is nothing to say about this. For details, refer to 79632924. Good luck!

Install JDK and tomcat in deepin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.