Installation of JDK and maven from VMware downloads to Linux environments

Source: Internet
Author: User
Tags intel core i5

Write in front: personal summary, if not, please point out

Operating Environment:

Operating system: WINDOW7 Enterprise Edition

Processor: Intel Core i5-4200u CPU @ 1.6GHz

Memory: 8G

System type: 64-bit operating system

Files that need to be installed:

Ubuntu System: Http://mirrors.yun-idc.com/ubuntu-releases/14.10/ubuntu-14.10-desktop-amd64.iso

(Version: Ubuntu 14.10

JDK Toolkit: www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

(Version: Jdk-8u51-linux-x64.tar.gz

MAVEN Project management tool: MAVEN.APACHE.ORG/DOWNLOAD.CGI

(Version: Apache-maven-3.3.3-bin.tar.gz

  VMware Virtual machines: Http://dlsw.baidu.com/sw-search-sp/soft/e5/13808/VMware-workstation-full-11.1.2.61471.1437365244.exe

(Version: VMware workstation 11.1 needs to find its own serial code

New virtual System steps:

1, open Vmware-workstation-full-11.1.2.61471.1437365244.exe Press the cue point next. Installation Complete VMware

2. In the VMware operating interface, click Create a new virtual machine

3. Select Custom (Advanced) > (default option) Next > Install operating system later > next >

4. "Location" fill in the address of Ubuntu just downloaded > The number of cores per processor (here I have selected 2, the better configuration can be selected 4) >

5. Memory of this virtual machine (I chose 2G here) > (default option) Next > Next > Next > Next >

6, Maximum disk size (I filled in 30G) > (default option) Next > Next > Finish

7. Edit virtual machine settings > CD/DVD > Use ISO image file > select the downloaded Ubuntu address >

8. Click to open this virtual machine > select default > Set to Chinese Simplified/English > enter virtual system

Install VM Tools:

  (To enable files to be dragged into Linux from Windows)

(http://jingyan.baidu.com/article/3065b3b6e8dedabecff8a435.html

1. Select the Virtual Machine menu bar--Install VMware Tools

2 . Then, in the VMware Tools window that pops up in the Ubuntu system, locate vmwaretools-9.6.0-1294478.tar.gz > Copy to Desktop

3, the vmwaretools-9.6.0-1294478.tar.gz right-click on the desktop to extract here

4 . Then re-open the left folder icon, open then in the upper right corner there is a search > Search Address bar input gnome-terminal >

5. Select File System > Reload in search results

6. In the search results, pull to the bottom to find the terminal icon and open it > Terminal window input sudo su

(sudo su commands can be explained in Ubuntu.)

(sudo su command, also known as "alternate user", "Super User" or "Switch User"

7. After entering the password, use the CD command to go to Ubuntu desktop, then enter the-vmware-tools-distrib folder

8, sudo./vmware-install.pl

(Use sudo./install command to install the vmware-install.pl folder inside the Vmware-tools-distrib folder

9. After [/usr/bin], press ENTER is always started. Press directly to/dev/sr0 ... Stop until

10, restart the virtual machine, you can pull files from Windows to Linux

Install JDK and maven:

(Maven is used to manage Java's class library, which is the jar package.) The JDK is the Java language Software Development Kit.

1. Drag the downloaded apache-maven-3.3.3-bin.tar.gz and jdk-8u51-linux-x64.tar.gz into the Linux desktop

2, double-click Open the above two files, the contents of the inside dragged out (hereinafter referred to as decompression).

Change the jdk-8u51-linux-x64 into a jdk-8u51-linux-x64.tar and unzip it again.

3. Open Terminal

CD/(Go to root root directory

cd Lib (Enter the Lib directory

sudo mkdir Java (created by name Java directory

CD Java (enter the Java directory

sudo mv + (drag extracted from Maven folder to terminal) +./(move files as administrator to the current directory, i.e../

sudo mv + (drag unzip out of JDK folder to terminal) +.

ll (view the files in the current directory

This time to obtain

    Can

4, sudo gedit ~/.profile

(as an administrator, open the hidden profile environment configuration file in the home directory with a text editor, which corresponds to the JDK

("~" is the main directory, ".") To hide Files

5. Locate the #if running bash under the. profile file with

Insert the following three lines of text between if [-N ' $BASH _version "];then this line

Java_home= "/lib/java/jdk1.8.0_51"

Maven_home= "/lib/java/apache-maven-3.3.3"

Classpath= ".: $JAVA _home/lib: $JAVA _home/lib/tools.jar"

Then insert a line underneath the fi

Path= "$JAVA _home/bin: $JAVA _home/jre/bin: $MAVEN _home/bin: $PATH"

Save, exit

(This step is the initial directory where the configuration runs.) before the configuration, you can not use the Java command directly, you need a specific directory and Java files to use this instruction, for example: JDK directory/bin/java-version

(once configured, it can be used directly for example: Java-version. You can print the path and look at the effect and see what is stored in path: Echo $PATH

6, create the Programme folder in the home folder, and then create the repo folder inside the Programme folder

7, CD apache-maven-3.3.3/conf/(enter apache-maven-3.3.3 under the Conf folder

8, sudo gedit settings.xml

(As an administrator, open the settings environment profile in this directory with a text editor, which corresponds to Maven's

9. In <localRepository>/path/to/local/repo</localRepository>

Add a row to the next line

<localrepository>/home/xxxxx (your user name such as:d Oufu)/programme/repo</localrepository>

Save, exit (setting's configuration is where the library of future downloads will be placed repo

10. The test is successful

In Terminal input java-version

Re-enter MVN-V

The two commands ran the same way, and the results proved right.

    

Reboot again and finish.

Note:

1, in the new virtual system, if you do not select "Install the operating system later," said the language can not enter the system to select the interface

2, decompression JDK must be careful to extract two times, otherwise show a green file (JDK) another is the Blue folder (MAVEN) This is not right

3, or install maven where the 3rd, sudo mv '/home/xxxx (your user name such as:d Oufu)/Desktop/apache-maven-3.3.3 './This sentence should be added at the end./otherwise error

Installation of JDK and maven from VMware downloads to Linux environments

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.