The Linux Server oraclejdk and openjdk coexist and configure the JavaEE development environment, oraclejdkjavaee

Source: Internet
Author: User

The Linux Server oraclejdk and openjdk coexist and configure the JavaEE development environment, oraclejdkjavaee

Due to my academic needs, I need to build a JavaEE development environment in linux and work with windows students for development.

 

JDK

Since fedora uses openjdk by default, some problems may occur when it is removed. Because many open-source software uses it by default, even if oracaljdk is installed, the oracle package does not exist, I do not dare to use it for new users. But it is developed in collaboration with partners who use windows, and problems may occur more or less when Java EE is developed using openjdk. Therefore, oraclejdk must be used in development, what Will oraclejdk be used? 1. IDE: such as myeclipse; 2. Use oracle jdk for tomcat. So I just need to specify the pull lajdk for both. Specify specific items.

| --Download and install .tar.gz jdk

Decompress the package and use it without configuring environment variables.

Considering that only my current login user uses oraclejdk

[nx@localhost bin]$ pwd/home/nx/bin/jdk/jdk1.8.0_92/bin[nx@localhost bin]$ ./java -versionjava version "1.8.0_92"Java(TM) SE Runtime Environment (build 1.8.0_92-b14)Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

For the coexistence problem between orcalejdk and openjdk: You can also use the update-alternatives command tool.

 

Tomcat

| --Install Tomcat:

| --Decompress. taf.gz

Refer to: install Tomcat and specify JDK

|-Open the browser: http: // 127.0.0.1: 8080/

Myeclipse2015: Configure jdk1.8 and tomcat8.0.

Mysql

| -- Although mysql in linux releases is gradually replaced by MariaDB, mysql must be used in my project

Install mysql5.7 using dnf. Many domestic tutorials are rpm or source code installation, and the tutorials are outdated. Some database security management modules have been replaced. I am using dnf

After installation, follow the tutorial of some blogs in China: either use./mysqld_safe & report does not exist; or use myql report:

ERROR 2002 (HY000 ): Can't Connect To Local MySQL Server Through Socket '/Var/Lib/Mysql/Mysql. Sock '(2)

Finally, foreign tutorials perfectly solve my problem:

Http://www.if-not-true-then-false.com/2010/install-mysql-on-fedora-centos-red-hat-rhel/

Version Control git, github

Although this blog is not highly technical, it can fully meet my individual needs. I am limited. please correct me more!

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: info-contact@alibabacloud.com 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.