Use jetty and Maven to develop HelloWorld under Ubuntu

Source: Internet
Author: User

    • 1 Installing the JDK

I've installed it before, and I won't say it here.

    • 2 Installing Maven
Go to official website to download

Extract

Add environment variable Gedit ~/.BASHRC

Export jetty_home=/home/roc/libs/jetty-7

Export m2_home=/home/roc/libs/apache-maven-3.2.3

Export maven_opts="-xms256m-xmx512m"

Export Path=${m2_home}/bin: $PATHExecute source ~/.BASHRC in effect

If you can't, please write it off.

Test maven-version

: ~$ mvn-version

Apache Maven3.2.3(33F8C3E1027C3DDDE99D3CDEBAD2656A31E8FDF4; the- ,-12t04: -:Ten+ ,:xx)
Maven Home:/home/roc/libs/apache-maven-3.2.3
Java version:1.7.0_71, Vendor:oracle Corporation
Java Home:/usr/lib/myjvm/jdk7/jre
Default LOCALE:ZH_CN, Platform encoding:utf-8
OS Name:"Linux", Version:"3.13.0-39-generic", Arch:"AMD64", Family:"Unix"

 

    • Here we go


Use jetty and Maven to develop HelloWorld under Ubuntu

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.