Java Drp project practice-Environment Building

Source: Internet
Author: User

Java Drp project practice-Environment Building


Summary

To start a Java project development, we need to build a Java Development Environment. What do we need to build a Java Development Environment, what are the precautions.

Process

First, let me list the software I used to build and develop the Java environment. Jdk, Jre, MyEclipse, Oracle, Tomcat, PL/SQLDeveloper, PowerDesign, and Rational Rose.

Before building Java, We must install these software on our computer. Here we only talk about how to install them, one Java Runtime Environment includes Jdk and Jre, and the other is the database Oracle. Here, we also want to talk about the 32-bit and 64-bit software, which can only be installed on 32-bit operating systems, you can install 32-bit or 64-bit on a 64-bit operating system. Therefore, we try to unify the development environment when installing software. My operating system is 64-bit, and my development environment is installed with 32-bit: Jdk, Jre, MyEclipse, and Tomcat are both 32-bit, while Oracle is 64-bit.

Development Environment Installation

Install Jdk and Jre

We have already introduced Jdk and Jre in our previous blog, so we will not go into details. In the topic, my Java environment is installed with version 1.7 32-bit.


Bit: http://pan.baidu.com/s/1mg5Jvsc


The installation steps are as follows,

Jdk-8u11-windows-i586.exe

2. Change the installation path to C: \ jdk1.7.0 _ 45 (customizable)

3. Install JRE to C: \ jdk1.7.0 _ 45 \ jre during running (customizable)

4. Right-click my computer> Properties> advanced system Settings> environment variables and perform the following settings.

5. Add the following to user variables:

JAVA_HOME = C: \ jdk1.7.0 _ 45

PATH =.; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin; % PATH %;

CLASSPATH =.; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar;

6. Call up the command line window (win + r and Enter cmd)

7. Enter java-version. If the following interface is displayed, JDK is installed successfully.


Install Oracle_11g

Here, because our project requires the database to be in Oracle, all the versions we have installed here are Oracle_11g 64-bit versions, and the database can be selected as needed. For Oracle Installation, you must install the Oracle database and the Oracle client.


Oracle Database, client, installation documentation is: http://pan.baidu.com/s/1c0IkW6W

1. to install the Oracle_11 database, refer to the installation documentation .:

2. Install oracle_client .exe. Follow the prompts to install it step by step, which is relatively simple.

Install PLSQL Developer

Since Oracle does not have a visual interface, we use the third-party database management software PLSQL Developer to manage Oracle databases. This software is not 32-bit or 64-bit. This software is relatively simple to install, as prompted.


: Http://pan.baidu.com/s/1sjx1E9n

After PLSQL is installed, we need to connect it to our Oracle database. here we need to configure:

1. Find the installation directory of the Oracle client and find the "tnsnames. ora" file under/instantclient_11_2.

2. Add the following content:

ORACLE=  (DESCRIPTION =    (ADDRESS_LIST =      (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT =1521))    )    (CONNECT_DATA =      (SERVER = DEDICATED)      (SERVICE_NAME = ORACLE)    ))


Install MyEclipse

MyEclipse is a powerful enterprise-level integrated development environment developed based on eclipse and its own plug-ins. It is mainly used for Java, Java EE, and mobile application development. Here, I installed MyEclipse10 with 32 bits, which must be activated in addition to installation. MyEclipse10 is relatively simple to install. Follow the prompts to proceed step by step.


MyEclipse10 and activation tools: http://pan.baidu.com/s/1mgKC5uw

After installing MyEclipse, open window-> Preferences, where you can set the MyEclipse environment according to your programming habits.

Tomcat installation

Tomcat is a Web application server developed by Apache, Sun, and other companies and individuals. It supports some JavaEE specifications. Some JavaEE specifications have been implemented for the project we want to develop, so Tomcat is enough. You can select your own Web application server as needed. I have installed Tomcat with the 32-bit 7.0 decompressed version. It can be used after decompression, saving installation.

Tomcat: http://pan.baidu.com/s/1kT7hubd

The database modeling tool PowerDesign and modeling tool RationalRose have nothing to do with the establishment of our environment, so I will not talk about it here again. Next we will start to build our development environment.

Development Environment Construction

Configure Jdk

1. After installing MyEclipse, open window> Preferences and select the Java> Installed JREs option on the left.

2. Modify the default jre configuration. Set the JDK path to C: \ jdk1.7.0 _ 45.

For example


Configure Tomcat

1. Open window-> Preferences, select MyEclipse> Services> Tomcat 7.x on the left, and select the Tomcat path to be decompressed on the right.

2. Under the Tomcat 7.x> Jdk option, select the jdk1.7.0 _ 45 we configured previously.

By now, the Java Development Environment on the Tomcat server has been successfully built,

Summary

After the Java development environment is successfully established, we can start our project development. How to Create a Java-developed Web project and connect it to our Oracle Database, we will introduce these in future project practices.

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.