LinuxMint under jdk+tomcat+mysql+eclipse Java EE installation

Source: Internet
Author: User
Tags mysql in tomcat server

Online Search a lot of methods, summed up the relatively simple practice.
本人使用的系统版本为64位LinuxMint18,cinnamon桌面环境,预装Openjdk1.8。开发使用版本为oracle的1.7版本jdk。
1 Installation of JDK

(1) First, download the Linux version of JDK from the official website.
Unzip it to the/USR/LIB/JVM directory;

sudo tar -zxvf jdk.....1.7/usr/lib/jvm

(2) Then, configure the environment variables for the newly installed JDK,
Using VIM to open the configuration file (note Some for modifying the ~/.bash.rc file, it is recommended to modify the/etc/profile file {/etc/profile) set variables (global) can be applied to any user, while the variables set in ~/.BASHRC and so on (local) can only inherit/ The variable in Etc/profile})

#oracle jdk 1.7环境变量export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_79export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

(3) Finally, you need to modify the default JDK for our newly installed version

/usr/bin/java java/usr/lib/jvm/jdk1.7.0_67-cloudera/bin/300/usr//usr/lib/jvm/jdk1.7.0_67-cloudera/bin/300

(The 300 here is just a sign, it doesn't make sense, it's just the next step)
Update a/USR/BIN/XXX command point to a new path can be used with sudo update-alternatives--config xxx
To update the Java command:

update--config java
2 Installation of Tomcat

(1) First, the official website obtains the Linux version of TOMCAT7.
(2) Then, unzip it to the/OPT directory, (personal habits, you can also choose other paths)

sudo tar -zxvf apache-tomcat-7.0.70.tar.gz -C /opt

After that, some tutorials prompt you to configure the Tomcat environment variable, it is recommended to modify the permissions of the directory directly, and for 777 you do not have to set environment variables separately.

chmod777 /opt/apache-tomcat-7.0.70 -R

This method avoids the problem of insufficient permissions to the Tomcat folder when installing Eclipse.
(3) Finally, boot verification, Tomcat installation succeeded.

3 Eclipse Java EE installation

(1) First, download the Linux version of Eclipse for Java EE from the official website, and note that when using jdk1.7, Eclipse can use the Mars version up to the maximum.
(2) Then, unzip to the/OPT directory, at this point eclipse installation is complete.

tar -zxvf eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz -C /opt

(3) To make it easier to use eclipse, then create a launcher for it on the desktop,
Right-click on the desktop, create a new launcher here, enter a shortcut name, and browse to the eclipse file
When you are sure, use vim or another text editor to open to modify shortcuts on your desktop, adding icon parameters.
The following changes are included:

[Desktop Entry]Comment=Terminal=falseName=Eclipse Mars2Icon=/opt/eclipse/icon.xpmExec=/opt/eclipse/eclipseType=ApplicationCategories=Development;IDE;Java;
Configuring the Tomcat server issue under Eclipse

(1) Select the Servers tab in the window below the main interface, and you will be prompted to create a new server, click (or Right-new->server)
(2) Select server type for Tomcat v7.0
(Note that the Tomcat directory permission is set to cause the server creation to fail, and again new is not possible to select Server7, at which point
In this case, open the project directory

.metadata.plugins\org.eclipse.core.runtime.settings

Folders, deleting

org.eclipse.wst.server.core.prefsorg.eclipse.jst.server.tomcat.core.prefs

File
Restart Eclipse)

4 Mysql5.7 Installation

Search MySQL in the Software Installation Manager to find mysql-server-5.7 installation, you will be prompted to enter the root password during installation

5 Database management Tools

Search for MySQL Workbench in the Software Installation Manager. Installation can be done.

LinuxMint under jdk+tomcat+mysql+eclipse Java EE installation

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.