Java Development Environment Configuration

Source: Internet
Author: User

One: Java configuration

1. Netsharp using the java1.8/1.7 version, this article uses version 1.8

2.jdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

3. Configure environment variables, this article uses linux,/etc/profile after adding:

Export java_home=/opt/java/jdk1.8.0_141
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

Execute command after configuration is complete: source/etc/profile

Perform the following command to view the Java configuration:

[Email protected]:~# java-version
Java Version "1.8.0_141"
Java (TM) SE Runtime Environment (build 1.8.0_141-b15)
Java HotSpot (TM) 64-bit Server VM (build 25.141-b15, Mixed mode)

Two. GRADLE

1. Download Gradle, that version is OK, this article uses the 4.1 version,:

https://gradle.org/releases/

2. Configure Gradle

Linux configuration/etc/profile, this article takes Linux as an example

Export gradle_home=/opt/gradle-4.1

Export path= $GRADLE _home/bin: $PATH

/opt/gradle-4.1 is the path of gradle after download, the command executes after configuration is completed: Source/etc/profile

Validation: Command line Input gradle command

[Email protected]:~# gradle

> Task:help

Welcome to Gradle 4.1.

To run a build, run Gradle <task> ...

To see a list of available tasks, run Gradle tasks

To see a list of command-line options, run Gradle--help

To see more detail on a task, run Gradle help--task <task>


BUILD successful in 0s
1 actionable task:1 executed

Description: Configure environment variables in Windows to

Third, source code download

Download the code via SVN or Git and don't repeat

command line enter code and directory, execute command: Gradle classes

The jar package will be downloaded from the warehouse at this time for 10 minutes or so.

Iv. installation of the Gradle plugin for the eclipse environment

1.eclipse Click on the menu "/help/eclipse maketplace ..." To open the plug-in market

2. Search for "Gradle"

3. Select the second, small elephant icon for this, and then install

Open in 4.eclipse:/window/referneces/gradle

Then configure: Gradle User home for:/opt/gradle-4.1

V. Tomcat

Using tomcat7,:http://tomcat.apache.org/download-70.cgi

Vi. opening projects in eclipse

1.eclipse in the Project Explorer right-click menu "Import"

2. Select Gradle

3. Welcome screen, Next

4. Select the source code root directory

5. Set the Gradle directory

6. Confirm "Finish" on the interface.

7. Open the project in Idear

Open the project in Idear Simple, open the project, select the directory, and then select "Settings.gradle" to

Java Development Environment Configuration

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.