Linux Server ORACLEJDK and OPENJDK coexist and configure the Java EE development environment

Source: Internet
Author: User

Because of my academic needs, I need to build a Java EE development environment in Linux and develop it in collaboration with the students in Windows.

Jdk

BecauseFedora is used by defaultOPENJDK, removal is more or less problematic, because many open source software is used by default, even if it is installedORACALJDK will also appear in the packageOracle does not exist problems, for the novice I do not dare to touch it;Windows development partners develop together and useOPENJDK DevelopmentJava EE is more or less problematic, so it must be used in developmentoraclejdk , what will be used to Where's oraclejdk? 1.IDE: myeclipse ; 2. Tomcat to use Oracle JDK. So I just specify the Oraclajdk. Specific things specifically specified.

|-- Download install. Version tar.gz jdk

Unzip to use, do not need to configure environment variables

I consider that only my current login user to use the ORACLEJDK, so

Pwd/home/nx/bin/jdk/jdk1. 8.0_92/bin[[email protected] bin]$./java-"1.8.0_92"1.8.0_92-25.92-b14, Mixed mode) 

For ORCALEJDK and OPENJDK coexistence issues: You can also use the update-alternatives command tool

Tomcat

|-- Installing tomcat:

|--decompression. taf.gz version can be used

Reference: installing Tomcat-specific JDK

|-Open Browser: http://127.0.0.1:8080/

myeclipse2015: Configure jdk1.8, tomcat8.0.

Mysql

|--Although MySQL in the Linux distribution is gradually replaced by mariadb, I have to use MySQL in my project

Using DNF method to install mysql5.7, many of the domestic tutorials for RPM or source installation, and the tutorial is too old, some database security management module has been replaced. The author uses DNF

At the end of the installation, follow the tutorials for some of the domestic blogs: either use the./mysqld_safe & Newspaper does not exist or use the MYQL newspaper:

ERROR 2002 (HY000): Can ' t connect to local MySQL Server through socket '/var/lib/mysql/MySQL. Sock ' (2)

Finally the foreign tutorial perfectly solves 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 technology content is not high, but fully can meet my personal needs. Limit my level is limited, please correct the corrigendum!

Linux Server ORACLEJDK and OPENJDK coexist and configure the Java EE development environment

Related Article

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.